> ## Documentation Index
> Fetch the complete documentation index at: https://staging-docs.arcade.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a pattern

> Retrieves a pattern. Image URLs are short-lived; retrieve the pattern again to renew them.



## OpenAPI

````yaml /openapi.json post /patterns/get
openapi: 3.1.1
info:
  title: Arcade API
  version: '1'
  description: >-
    Generate patterns and order them as manufactured products. Every request is
    a POST with a JSON body.
servers:
  - url: https://platform.arcade.ai/v1
    description: Production
  - url: https://staging-platform.arcade.ai/v1
    description: Staging
security:
  - apiKey: []
tags:
  - name: Patterns
    description: Patterns you generate.
  - name: Refine
    description: Edit, recolor, crop and extend patterns.
  - name: Jobs
    description: Long-running work.
  - name: References
    description: Images that guide generation.
  - name: Models
    description: The models that generate patterns.
  - name: Categories
    description: Product types and their options.
  - name: Products
    description: Products made from your patterns.
  - name: Checkouts
    description: Checkouts for ordering products.
  - name: Orders
    description: Your orders.
paths:
  /patterns/get:
    post:
      tags:
        - Patterns
      summary: Retrieve a pattern
      description: >-
        Retrieves a pattern. Image URLs are short-lived; retrieve the pattern
        again to renew them.
      operationId: patterns.get
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                patternId:
                  type: string
                  minLength: 1
                  description: >-
                    Opaque ID of one pattern: an immutable image. A refine makes
                    a new pattern.
              required:
                - patternId
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  imageUrl:
                    type: string
                    format: uri
                    description: Short-lived; read again to renew. Host not guaranteed.
                  thumbnailUrl:
                    type: string
                    format: uri
                  width:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    exclusiveMinimum: 0
                  height:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    exclusiveMinimum: 0
                  patternId:
                    type: string
                    minLength: 1
                    description: >-
                      Opaque ID of one pattern: an immutable image. A refine
                      makes a new pattern.
                  prompt:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      The prompt of the generation this pattern comes from,
                      through any refines; null when none made it
                  sourcePatternId:
                    anyOf:
                      - type: string
                        minLength: 1
                        description: >-
                          Opaque ID of one pattern: an immutable image. A refine
                          makes a new pattern.
                      - type: 'null'
                    description: The pattern a refine was made from; null for a generation
                  createdAt:
                    type: string
                    format: date-time
                required:
                  - imageUrl
                  - thumbnailUrl
                  - width
                  - height
                  - patternId
                  - prompt
                  - sourcePatternId
                  - createdAt
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````