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

# Upload an image (signed)

> Upload raw image bytes (multipart/form-data) using a short-lived, single-use token minted via the bloom_create_image_upload_url MCP tool. The token in the path is the credential — no Authorization header is expected. Same validation/storage pipeline as POST /images/uploads/file. Returns an image ID and URL usable with the generate or edit endpoints.



## OpenAPI

````yaml https://www.trybloom.ai/api/v1/spec.json post /images/uploads/file/signed/{token}
openapi: 3.1.1
info:
  title: Bloom API
  version: 1.0.0
servers:
  - url: https://www.trybloom.ai/api/v1
security:
  - apiKey: []
  - bearer: []
tags:
  - name: Account
    description: >-
      Inspect the authenticated account — profile, credit balance, and
      accessible workspaces.
  - name: Brands
    description: Manage brands and brand identity.
  - name: Images
    description: Generate, edit, and retrieve images.
paths:
  /images/uploads/file/signed/{token}:
    post:
      tags:
        - Images
      summary: Upload an image (signed)
      description: >-
        Upload raw image bytes (multipart/form-data) using a short-lived,
        single-use token minted via the bloom_create_image_upload_url MCP tool.
        The token in the path is the credential — no Authorization header is
        expected. Same validation/storage pipeline as POST /images/uploads/file.
        Returns an image ID and URL usable with the generate or edit endpoints.
      operationId: images.uploadFileSigned
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Short-lived upload token from bloom_create_image_upload_url
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  anyOf:
                    - type: string
                      contentMediaType: image/png
                    - type: string
                      contentMediaType: image/jpeg
                    - type: string
                      contentMediaType: image/webp
                    - type: string
                      contentMediaType: image/avif
                  description: >-
                    Image file (PNG, JPEG, WebP, or AVIF, max 10MB). AVIF is
                    converted to PNG server-side.
              required:
                - file
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      imageUrl:
                        type: string
                        format: uri
                      width:
                        type: number
                      height:
                        type: number
                      mimeType:
                        type: string
                    required:
                      - id
                      - imageUrl
                      - width
                      - height
                      - mimeType
                required:
                  - data
        '400':
          description: '400'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: UNSUPPORTED_FORMAT
                      status:
                        const: 400
                      message:
                        type: string
                        default: Unsupported image format
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: FILE_TOO_LARGE
                      status:
                        const: 400
                      message:
                        type: string
                        default: Image exceeds maximum file size
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
        '401':
          description: '401'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: INVALID_UPLOAD_TOKEN
                      status:
                        const: 401
                      message:
                        type: string
                        default: Upload token is invalid, expired, or already used
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: false
                      code:
                        type: string
                      status:
                        type: number
                      message:
                        type: string
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Bloom API key, for example `x-api-key: bloom_sk_...`.'
    bearer:
      type: http
      scheme: bearer
      description: Bloom API key (`Bearer bloom_sk_...`) or Bloom OAuth access token.

````