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

# Create private image downloads

> Issues fresh short-lived private GET URLs for up to 20 image IDs. Missing and out-of-scope images are returned as indistinguishable unavailable entries while valid siblings still succeed.



## OpenAPI

````yaml /openapi/platform.v1.json post /v1/agents/{agentId}/images/downloads
openapi: 3.0.3
info:
  description: Public platform API for catalog and proxied data-plane routes.
  title: Matrices Platform API
  version: v1
servers:
  - url: https://api.matrices.com
security: []
tags:
  - description: Authenticated bearer credential context.
    name: auth
    x-group: Auth
  - description: Write-only provider credentials with safe connection metadata.
    name: connections
    x-group: Connections
  - description: Materialized workspace principals and active agent counts.
    name: identities
    x-group: Identities
  - description: Remote MCP server registrations.
    name: toolsets
    x-group: Toolsets
  - description: Named allow-only agent tool permissions.
    name: roles
    x-group: Roles
  - description: Client-executed tool calls.
    name: tools
    x-group: Tools
  - description: Reusable agent behavior profiles.
    name: profiles
    x-group: Profiles
  - description: Workspace-owned agent identities.
    name: agents
    x-group: Agents
  - description: Immutable private image inputs.
    name: images
    x-group: Images
  - description: Public model catalog.
    name: models
    x-group: Models
  - description: Running agent threads.
    name: threads
    x-group: Threads
  - description: Agent schedules.
    name: schedules
    x-group: Schedules
  - description: Workspace append-only feeds.
    name: feeds
    x-group: Feeds
  - description: Agent subscriptions over workspace feeds.
    name: subscriptions
    x-group: Subscriptions
  - description: Agent-private and workspace-shared durable memory notes.
    name: memory
    x-group: Memory
  - description: Thread messages.
    name: messages
    x-group: Messages
  - description: Thread event log data.
    name: events
    x-group: Events
  - description: Runtime hook audit and wait resolution.
    name: hooks
    x-group: Hooks
paths:
  /v1/agents/{agentId}/images/downloads:
    post:
      tags:
        - images
      summary: Create private image downloads
      description: >-
        Issues fresh short-lived private GET URLs for up to 20 image IDs.
        Missing and out-of-scope images are returned as indistinguishable
        unavailable entries while valid siblings still succeed.
      operationId: CreateImageDownloads
      parameters:
        - $ref: '#/components/parameters/AgentID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageDownloadRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageDownloadResponse'
          description: Input-ordered private download results.
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '502':
          $ref: '#/components/responses/RuntimeUpstreamError'
        '503':
          $ref: '#/components/responses/RuntimeUnavailable'
      security:
        - APIKeyBearer: []
components:
  parameters:
    AgentID:
      in: path
      name: agentId
      required: true
      schema:
        type: string
  schemas:
    ImageDownloadRequest:
      additionalProperties: false
      properties:
        imageIds:
          items:
            $ref: '#/components/schemas/ImageID'
          maxItems: 20
          minItems: 1
          type: array
          uniqueItems: true
      required:
        - imageIds
      type: object
    ImageDownloadResponse:
      additionalProperties: false
      properties:
        downloads:
          items:
            $ref: '#/components/schemas/ImageDownload'
          maxItems: 20
          minItems: 1
          type: array
      required:
        - downloads
      type: object
    ImageID:
      description: Opaque identifier for one immutable private image.
      maxLength: 68
      minLength: 68
      pattern: ^img_[0-9a-f]{64}$
      type: string
    ImageDownload:
      discriminator:
        mapping:
          ready: '#/components/schemas/ReadyImageDownload'
          unavailable: '#/components/schemas/UnavailableImageDownload'
        propertyName: status
      oneOf:
        - $ref: '#/components/schemas/ReadyImageDownload'
        - $ref: '#/components/schemas/UnavailableImageDownload'
    ErrorResponse:
      properties:
        attemptsRemaining:
          type: integer
        code:
          type: string
        error:
          type: string
        message:
          type: string
        retryAfterSeconds:
          type: integer
      required:
        - error
        - message
      type: object
    ReadyImageDownload:
      additionalProperties: false
      properties:
        download:
          $ref: '#/components/schemas/PrivateDownload'
        imageId:
          $ref: '#/components/schemas/ImageID'
        status:
          enum:
            - ready
          type: string
      required:
        - imageId
        - status
        - download
      type: object
    UnavailableImageDownload:
      additionalProperties: false
      properties:
        imageId:
          $ref: '#/components/schemas/ImageID'
        status:
          enum:
            - unavailable
          type: string
      required:
        - imageId
        - status
      type: object
    PrivateDownload:
      additionalProperties: false
      properties:
        expiresAt:
          format: date-time
          type: string
        url:
          description: Short-lived bearer URL. Do not persist or share it.
          format: uri
          type: string
      required:
        - url
        - expiresAt
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Invalid request.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Resource not found.
    PayloadTooLarge:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Request payload is too large.
    RuntimeUpstreamError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Runtime environment returned an upstream error.
    RuntimeUnavailable:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Runtime environment is unavailable or cannot be selected.
  securitySchemes:
    APIKeyBearer:
      scheme: bearer
      type: http

````

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