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

# Get Upload

> Status of a chunked upload, then its result once processing finishes.

Status of an upload sent in pieces (see [Large Files](https://docs.snipp.gg/api-reference/endpoint/upload.md#large-files)), then its result.

## Behavior

* While pieces are still arriving, `200` with `upload.status: uploading`. After the last piece, `upload.status: processing` until the file is stored.
* When processing finishes, `200` with the same `{url, post}` body `POST /upload` returns for one file, or the `{post}` body of `POST /posts/{code}/files` when the pieces went there. A failed upload returns its error at the status that endpoint would have used.
* The result is kept for 10 minutes after processing finishes. After that, and for an id that is unknown, expired or belongs to another account or team, the response is `404`.
* Send it to `https://{region}.api.snipp.gg` from `upload.region`.
* 20 requests per 30 seconds. Polling every 2 seconds stays under it.

## Example

```bash theme={null}
curl "https://eu-west-1.api.snipp.gg/upload/9f86d081884c7d659a2feaa0c55ad015" \
  -H "api-key: YOUR_API_KEY"
```


## OpenAPI

````yaml api-reference/openapi.json GET /upload/{id}
openapi: 3.0.0
info:
  title: Snipp.gg API
  description: Image and video hosting API. Upload, manage, and share media files.
  version: 3.0.0
servers:
  - url: https://api.snipp.gg
    description: Default. Load-balanced across regions. No upload cap.
  - url: https://eu-west-1.api.snipp.gg
    description: EU West regional endpoint. Pins uploads and storage to EU West.
  - url: https://us-west-1.api.snipp.gg
    description: US West regional endpoint. Pins uploads and storage to US West.
  - url: https://flux.snipp.gg
    description: Alternative host. Capped at 100 MB per upload.
security:
  - apiKeyAuth: []
paths:
  /upload/{id}:
    get:
      summary: Get Upload
      description: Status of a chunked upload, then its result once processing finishes.
      operationId: getUpload
      parameters:
        - name: id
          in: path
          required: true
          description: The `upload.id` returned for the first piece.
          schema:
            type: string
            pattern: ^[a-f0-9]{32}$
      responses:
        '200':
          description: Success
          headers:
            request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/UploadStatus'
                    description: Still uploading or processing.
                  - type: object
                    properties:
                      url:
                        type: string
                        description: Direct URL of the first file (`post.files[0].url`).
                      post:
                        $ref: '#/components/schemas/Post'
                    required:
                      - url
                      - post
                    description: >-
                      Finished. The same body `POST /upload` returns for one
                      file.
                  - type: object
                    properties:
                      post:
                        $ref: '#/components/schemas/Post'
                    required:
                      - post
                    description: >-
                      Finished, for pieces sent to `POST /posts/{code}/files`.
                      The same body that endpoint returns.
              examples:
                processing:
                  summary: Processing
                  value:
                    upload:
                      id: 9f86d081884c7d659a2feaa0c55ad015
                      status: processing
                      region: eu-west-1
                done:
                  summary: Finished
                  value:
                    url: >-
                      https://i.snipp.gg/123456789012345678/a1b2c3d4e5f6789012345678abcdef01.png
                    post:
                      code: AbCd1234
                      url: https://snipp.gg/p/AbCd1234
                      title: my gaming POV
                      description: null
                      privacy: unlisted
                      created_at: '2026-10-01T09:15:27.204Z'
                      view_count: 0
                      like_count: 0
                      comment_count: 0
                      priority: false
                      file_count: 1
                      files:
                        - name: a1b2c3d4e5f6789012345678abcdef01.png
                          url: >-
                            https://i.snipp.gg/123456789012345678/a1b2c3d4e5f6789012345678abcdef01.png
                          size: 2487312
                          mime_type: image/png
                          width: 1920
                          height: 1080
                          thumbnail_url: null
                      team_id: null
                      author:
                        id: '123456789012345678'
                        username: playerone
                        nickname: Player One
                        avatar: >-
                          https://i.snipp.gg/avatars/123456789012345678/7e1f0a2b3c4d5e6f708192a3b4c5d6e7.png
                        verified: false
                        plan: plus
                      liked: false
                      moderated: false
                      restricted: false
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '405':
          $ref: '#/components/responses/E405'
        '413':
          $ref: '#/components/responses/E413'
        '429':
          $ref: '#/components/responses/E429'
        '500':
          $ref: '#/components/responses/E500'
components:
  headers:
    RequestId:
      description: Unique ID for the request. Include it when contacting support.
      schema:
        type: string
        format: uuid
  schemas:
    UploadStatus:
      type: object
      properties:
        upload:
          type: object
          properties:
            id:
              type: string
              description: >-
                Upload id, 32 hex characters. Send it as `upload-id` with every
                later piece.
            status:
              type: string
              enum:
                - uploading
                - processing
              description: >-
                `uploading` while pieces are still arriving, `processing` once
                the last piece is in and the file is being stored.
            region:
              type: string
              description: >-
                Region of the server holding the pieces, such as `eu-west-1`, or
                `unknown`. Send every later piece and status check to
                `https://{region}.api.snipp.gg` so they reach the same server.
          required:
            - id
            - status
            - region
      required:
        - upload
      example:
        upload:
          id: 9f86d081884c7d659a2feaa0c55ad015
          status: uploading
          region: eu-west-1
    Post:
      type: object
      properties:
        code:
          type: string
          description: Share code.
        url:
          type: string
          description: >-
            Share page, `https://snipp.gg/p/{code}`. When the account has picked
            another link domain, `https://{domain}/{code}` instead.
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        privacy:
          type: string
          enum:
            - public
            - unlisted
            - private
        created_at:
          type: string
          format: date-time
        view_count:
          type: integer
        like_count:
          type: integer
          description: '`null` on team posts.'
          nullable: true
        comment_count:
          type: integer
          description: '`0` while the post''s comments are turned off.'
        priority:
          type: boolean
          description: At least one video is on priority (adaptive) streaming.
        file_count:
          type: integer
        files:
          type: array
          items:
            $ref: '#/components/schemas/File'
        team_id:
          type: string
          description: Team ID for team posts, otherwise `null`.
          nullable: true
        author:
          $ref: '#/components/schemas/UserRef'
          nullable: true
        liked:
          type: boolean
          description: You liked the post. `null` on team posts.
          nullable: true
        moderated:
          type: boolean
          description: Owner only. Omitted for everyone else.
        restricted:
          type: boolean
          description: Owner only. Omitted for everyone else.
      required:
        - code
        - url
        - title
        - description
        - privacy
        - created_at
        - view_count
        - like_count
        - comment_count
        - priority
        - file_count
        - files
        - team_id
        - author
        - liked
    File:
      type: object
      properties:
        name:
          type: string
          description: 'Stored file name: 32 hex characters plus an extension.'
        url:
          type: string
          description: >-
            Direct file URL. Signed for 24 hours on private posts, and always
            for archives, audio and PDFs.
        size:
          type: integer
          description: Bytes.
          nullable: true
        mime_type:
          type: string
          nullable: true
        width:
          type: integer
          nullable: true
        height:
          type: integer
          nullable: true
        thumbnail_url:
          type: string
          description: Video thumbnail URL, or `null`.
          nullable: true
      required:
        - name
        - url
        - size
        - mime_type
        - width
        - height
        - thumbnail_url
    UserRef:
      type: object
      properties:
        id:
          type: string
          description: User ID (snowflake).
        username:
          type: string
          nullable: true
        nickname:
          type: string
          nullable: true
        avatar:
          type: string
          description: Avatar URL. Falls back to `https://cdn.snipp.gg/avatar.png`.
        verified:
          type: boolean
        plan:
          $ref: '#/components/schemas/Plan'
      required:
        - id
        - username
        - nickname
        - avatar
        - verified
        - plan
      description: A user embedded inside another resource.
    Error:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      description: Every non-2xx response has this body.
    Plan:
      type: string
      enum:
        - free
        - plus
        - ultra
    ErrorDetail:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ErrorType'
        message:
          type: string
          description: Human-readable sentence. Do not match on it; use `type`.
        username:
          type: string
          description: >-
            `suspended` on `GET /users/{id}` only: the suspended user's
            username.
        quota:
          type: integer
          description: '`quota_exceeded` only: weekly quota in bytes.'
        used:
          type: integer
          description: '`quota_exceeded` only: bytes used in the current window.'
        resets_at:
          type: string
          format: date-time
          description: '`quota_exceeded` only: when the weekly window resets.'
          nullable: true
        failed:
          type: array
          items:
            $ref: '#/components/schemas/FailedFile'
          description: '`upload_failed` only: one entry per file.'
        expires_at:
          type: string
          format: date-time
          description: '`timed_out` only: when the timeout ends.'
        retry_at:
          type: string
          format: date-time
          description: '`slow_mode` only: when you can send your next message.'
        missing:
          type: array
          items:
            type: integer
          description: >-
            `Missing chunks.` on the last piece of a chunked upload only:
            zero-based indexes of the pieces the server does not have. Send
            them, then the last piece again.
      required:
        - type
        - message
    ErrorType:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - suspended
        - blocked
        - moderated
        - plan_required
        - timed_out
        - banned
        - chat_off
        - slow_mode
        - not_found
        - method_not_allowed
        - file_too_large
        - unsupported_type
        - quota_exceeded
        - rate_limited
        - upload_failed
        - internal
        - unavailable
      description: Machine-readable error category. See [Errors](/concepts/errors).
    FailedFile:
      type: object
      properties:
        index:
          type: integer
          description: Zero-based position of the file in the request.
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - index
        - error
      description: >-
        A file that was not stored. `error` has the same shape as a top-level
        error.
  responses:
    E400:
      description: Invalid request
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E401:
      description: Missing or invalid key
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E403:
      description: Not allowed
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E404:
      description: Not found
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E405:
      description: Method not allowed
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
        Allow:
          description: Methods this path accepts.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E413:
      description: File too large
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E429:
      description: Rate limited
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E500:
      description: Internal error
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: api-key
      description: Your API key from an app on snipp.gg/settings/apps

````

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