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

# Create a pattern upload URL

> Returns a signed URL for uploading your own artwork. `PUT` the file to the URL with the required headers, then call `patterns/upload`. Supports JPEG, PNG, WebP and GIF, up to 10 MiB.



## OpenAPI

````yaml /openapi.json post /patterns/createUpload
openapi: 3.1.1
info:
  title: Arcade API
  version: '1'
  description: >-
    Generate patterns and custom products from text prompts, and order them.
    Every request is a POST with a JSON body.
servers:
  - url: https://platform.arcade.ai/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Patterns
    description: Reusable print patterns you generate or upload.
  - 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 generated from a prompt or made from your patterns.
  - name: Checkouts
    description: Checkouts for ordering products.
  - name: Orders
    description: Your orders.
  - name: Feedback
    description: Reports about the API to Arcade.
paths:
  /patterns/createUpload:
    post:
      tags:
        - Patterns
      summary: Create a pattern upload URL
      description: >-
        Returns a signed URL for uploading your own artwork. `PUT` the file to
        the URL with the required headers, then call `patterns/upload`. Supports
        JPEG, PNG, WebP and GIF, up to 10 MiB.
      operationId: patterns.createUpload
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                requestId:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: >-
                    An ID you choose for this request, up to 128 characters.
                    Retrying with the same `requestId` and body returns the
                    original result.
                mediaType:
                  enum:
                    - image/gif
                    - image/jpeg
                    - image/png
                    - image/webp
                  type: string
                  description: The file's media type, such as `image/png`.
                byteLength:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 10485760
                  exclusiveMinimum: 0
                  description: >-
                    The file's size in bytes, at most 10 MiB. `patterns/upload`
                    checks the size of the file you sent.
              required:
                - requestId
                - mediaType
                - byteLength
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  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: >-
                      The upload's ID. Only the account that created it can use
                      it.
                  uploadUrl:
                    type: string
                    format: uri
                    description: Signed URL to `PUT` the file to. The host can change.
                  method:
                    const: PUT
                  requiredHeaders:
                    type: object
                    properties:
                      Content-Type:
                        type: string
                    required:
                      - Content-Type
                    description: Headers the `PUT` must send, exactly as given.
                  expiresAt:
                    type: string
                    format: date-time
                    description: When the upload URL stops working.
                required:
                  - uploadId
                  - uploadUrl
                  - method
                  - requiredHeaders
                  - expiresAt
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.