> ## 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.

# Create a reference

> Saves an uploaded image as a reference for `patterns/create`.



## OpenAPI

````yaml /openapi.json post /references/create
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:
  /references/create:
    post:
      tags:
        - References
      summary: Create a reference
      description: Saves an uploaded image as a reference for `patterns/create`.
      operationId: references.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                requestId:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: >-
                    Caller-chosen idempotency key; a replay returns the original
                    result
                uploadId:
                  type: string
                  pattern: >-
                    ^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.(gif|jpg|png|webp)$
                  description: From references.createUpload, once the file was PUT
              required:
                - requestId
                - uploadId
      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
                  mediaType:
                    enum:
                      - image/gif
                      - image/jpeg
                      - image/png
                      - image/webp
                    type: string
                  referenceId:
                    type: string
                    minLength: 1
                    description: Opaque ID of one uploaded reference image
                  createdAt:
                    type: string
                    format: date-time
                required:
                  - imageUrl
                  - thumbnailUrl
                  - width
                  - height
                  - mediaType
                  - referenceId
                  - createdAt
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````