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

# Get a file

> Returns metadata and a short-lived download URL when the authenticated principal uploaded the file or can currently read a live message containing it. Incomplete uploads remain visible only to the API key that created the upload intent.



## OpenAPI

````yaml /openapi.json get /files/{fileId}
openapi: 3.0.3
info:
  description: >-
    Generated from Ando's accepted public API v1 contract metadata. Current
    routes preserve legacy /api/v1 response envelopes while converging on the
    public https://api.ando.so/v1 shape.
  title: Ando Public API
  version: v1
servers:
  - description: Canonical public API host.
    url: https://api.ando.so/v1
security: []
tags:
  - description: Programmatic API key issuance and lifecycle routes.
    name: API Keys
  - description: Workspace agent lifecycle routes.
    name: Agents
  - description: Call detail and transcript routes.
    name: Calls
  - description: Membership-scoped conversation routes.
    name: Conversations
  - description: File upload lifecycle routes for public API message attachments.
    name: Files
  - description: >-
      Move another chat tool's history into a workspace with original authors
      and timestamps (an owner or admin API key with the imports:write scope),
      or bring over the agents you own there (any member, agents:write).
    name: Imports
  - description: >-
      Workspace member detail routes. Existing v1 paths keep member
      compatibility spellings.
    name: Members
  - description: Message and conversation message routes.
    name: Messages
  - description: Public realtime connection and protocol routes.
    name: Realtime
  - description: Search routes.
    name: Search
  - description: Outbound webhook endpoint and delivery routes.
    name: Webhooks
paths:
  /files/{fileId}:
    get:
      tags:
        - Files
      summary: Get a file
      description: >-
        Returns metadata and a short-lived download URL when the authenticated
        principal uploaded the file or can currently read a live message
        containing it. Incomplete uploads remain visible only to the API key
        that created the upload intent.
      operationId: getFile
      parameters:
        - description: File identifier.
          in: path
          name: fileId
          required: true
          schema:
            description: File identifier.
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                file:
                  summary: Ready file.
                  value:
                    data:
                      object: file
                      id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      status: ready
                      purpose: message_attachment
                      filename: report.pdf
                      content_type: application/pdf
                      size_bytes: 12345
                      created_at: '2026-05-14T08:00:00.000Z'
                      updated_at: '2026-05-14T08:03:00.000Z'
                      upload: null
                      download:
                        method: GET
                        url: https://storage.example/download/report.pdf
                        expires_at: '2026-05-14T08:04:00.000Z'
                    file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
              schema:
                $ref: '#/components/schemas/PublicFileResponse'
          description: File lifecycle state.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - AndoApiKey: []
        - BearerApiKey: []
components:
  schemas:
    PublicFileResponse:
      additionalProperties: false
      description: Public file response envelope.
      properties:
        data:
          $ref: '#/components/schemas/PublicFileResult'
        file_id:
          description: File identifier. Matches data.id.
          type: string
          example: 01jzn7e61x3a7v9h2r7t2m3q4p
      required:
        - data
        - file_id
      type: object
    PublicFileResult:
      additionalProperties: false
      description: >-
        Public file lifecycle state. Ready readable files include short-lived
        download instructions and can be attached to message creation with
        file_ids.
      properties:
        content_type:
          description: Declared MIME content type.
          type: string
        created_at:
          description: File upload intent creation timestamp.
          type: string
          example: '2026-05-14T08:00:00.000Z'
          format: date-time
        file_id:
          description: File identifier. Matches id for message file_ids.
          type: string
          example: 01jzn7e61x3a7v9h2r7t2m3q4p
        filename:
          description: Original filename.
          type: string
        id:
          description: File identifier.
          type: string
          example: 01jzn7e61x3a7v9h2r7t2m3q4p
        object:
          description: Object type.
          enum:
            - file
          type: string
        purpose:
          description: File purpose.
          enum:
            - message_attachment
          type: string
        size_bytes:
          description: File size in bytes.
          type: integer
          minimum: 1
        status:
          description: File lifecycle status.
          enum:
            - waiting_for_upload
            - uploaded
            - processing
            - ready
            - aborted
            - expired
            - failed
          type: string
        updated_at:
          description: Last file lifecycle update timestamp.
          type: string
          example: '2026-05-14T08:00:00.000Z'
          format: date-time
        upload:
          allOf:
            - $ref: '#/components/schemas/PublicFileUploadInstructions'
          description: >-
            Temporary storage upload instructions returned by create-file
            responses while the file is waiting for bytes. Metadata-only
            get-file responses return null; replay create-file with the same
            Idempotency-Key and body to refresh an upload URL.
          nullable: true
        download:
          allOf:
            - $ref: '#/components/schemas/PublicFileDownloadInstructions'
          description: >-
            Short-lived download instructions for an authorized ready file.
            Omitted for incomplete upload lifecycle responses.
      required:
        - object
        - id
        - file_id
        - status
        - purpose
        - filename
        - content_type
        - size_bytes
        - created_at
        - updated_at
        - upload
      type: object
    LegacyErrorResponse:
      additionalProperties: false
      description: Current compatibility error envelope used by legacy /api/v1 routes.
      properties:
        error:
          description: Error message.
          type: string
        error_code:
          description: Optional machine-readable error code.
          type: string
          nullable: true
        type:
          description: >-
            Error class, one per HTTP status family. rate_limit_error,
            api_error, overloaded_error and timeout_error are worth retrying;
            the others need a different request. Retry a write only with the
            same Idempotency-Key: an api_error can mean it committed.
          enum:
            - invalid_request_error
            - authentication_error
            - permission_error
            - not_found_error
            - conflict_error
            - request_too_large
            - rate_limit_error
            - api_error
            - overloaded_error
            - timeout_error
          type: string
        request_id:
          description: >-
            The request id, also sent as the x-request-id header. Quote it when
            reporting a problem.
          type: string
        missing_scopes:
          description: Missing scopes.
          items:
            description: Scope.
            type: string
          type: array
      required:
        - error
      type: object
    PublicApiErrorResponse:
      additionalProperties: false
      description: Target public API error envelope.
      properties:
        error:
          additionalProperties: false
          description: Error details.
          properties:
            code:
              description: Machine-readable error code.
              type: string
            message:
              description: Human-readable error message.
              type: string
            request_id:
              description: Request identifier.
              type: string
              nullable: true
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
    PublicFileUploadInstructions:
      additionalProperties: false
      description: Temporary storage upload instructions.
      properties:
        expires_at:
          description: Upload URL expiration timestamp.
          type: string
          example: '2026-05-14T08:00:00.000Z'
          format: date-time
        headers:
          additionalProperties:
            description: Required header value.
            type: string
          description: Headers that must be sent exactly with the direct storage upload.
          type: object
        kind:
          description: Upload strategy.
          enum:
            - single_part_presigned_put
          type: string
        method:
          description: Upload HTTP method.
          enum:
            - PUT
          type: string
        url:
          description: Temporary direct upload URL.
          type: string
          format: uri
      required:
        - kind
        - method
        - url
        - headers
        - expires_at
      type: object
    PublicFileDownloadInstructions:
      additionalProperties: false
      description: Temporary storage download instructions.
      properties:
        expires_at:
          description: Download URL expiration timestamp.
          type: string
          format: date-time
          nullable: true
        method:
          description: Download HTTP method.
          enum:
            - GET
          type: string
        url:
          description: Temporary direct download URL.
          type: string
          format: uri
      required:
        - method
        - url
        - expires_at
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Bad request.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Missing or invalid API key.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Forbidden.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Not found.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Conflict.
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicApiErrorResponse'
      description: Rate limit or quota exceeded.
    InternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Internal server error.
  securitySchemes:
    AndoApiKey:
      description: Workspace API key. Current accepted keys use the ando_sk_ prefix.
      in: header
      name: x-api-key
      type: apiKey
    BearerApiKey:
      bearerFormat: ando_sk
      description: Compatibility transport for workspace API keys.
      scheme: bearer
      type: http

````

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