Ando Files API

File upload lifecycle routes for public API message attachments.

Operations 4

POST /files Create a file #
GET /files/{fileId} Get a file #
POST /files/{fileId}/complete Complete a file upload #
POST /files/{fileId}/abort Abort a file upload #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ando:ando-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ando-files-api-openapi.yml Raw ↑
openapi: 3.2.0
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 Files API
  version: v1
servers:
- description: Canonical public API host.
  url: https://api.ando.so/v1
tags:
- description: File upload lifecycle routes for public API message attachments.
  name: Files
paths:
  /files:
    post:
      description: Creates a file upload intent for a message attachment. The response returns temporary direct storage upload instructions; send the bytes to that URL, then complete the file before using its id in create-message file_ids. Replay the same request with the same Idempotency-Key and body to refresh an active upload URL.
      operationId: createFile
      parameters:
      - description: Required idempotency key for safely retrying this write.
        in: header
        name: Idempotency-Key
        required: true
        schema:
          description: Idempotency key.
          type: string
          maxLength: 255
      requestBody:
        content:
          application/json:
            examples:
              file:
                summary: Create a message attachment file upload.
                value:
                  filename: report.pdf
                  content_type: application/pdf
                  size_bytes: 12345
                  purpose: message_attachment
                  sha256: null
                  client_upload_id: local-upload-42
            schema:
              $ref: '#/components/schemas/CreatePublicFileBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                file:
                  summary: Existing file upload intent.
                  value:
                    data:
                      object: file
                      id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      status: waiting_for_upload
                      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:00:00.000Z'
                      upload:
                        kind: single_part_presigned_put
                        method: PUT
                        url: https://storage.example/upload
                        headers:
                          Content-Length: '12345'
                          Content-Type: application/pdf
                          x-amz-meta-ando-file-id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                        expires_at: '2026-05-14T08:15:00.000Z'
                    file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
              schema:
                $ref: '#/components/schemas/PublicFileResponse'
          description: Existing file upload intent for a matching idempotency key.
        '201':
          content:
            application/json:
              examples:
                file:
                  summary: Created file upload intent.
                  value:
                    data:
                      object: file
                      id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      status: waiting_for_upload
                      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:00:00.000Z'
                      upload:
                        kind: single_part_presigned_put
                        method: PUT
                        url: https://storage.example/upload
                        headers:
                          Content-Length: '12345'
                          Content-Type: application/pdf
                          x-amz-meta-ando-file-id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                        expires_at: '2026-05-14T08:15:00.000Z'
                    file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
              schema:
                $ref: '#/components/schemas/PublicFileResponse'
          description: Created file upload intent.
        '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: []
      summary: Create a file
      tags:
      - Files
      x-ando-compatibility-mode: standard_public
      x-ando-migration-target: standard_public
      x-ando-rate-limit-policy: declared
      x-ando-route-id: api.api_v1_files.post
      x-ando-required: true
      x-ando-canonical-host: api.ando.so
      x-ando-documentation-owner: api_platform
      x-ando-principal-kind: workspace_api_key
      x-ando-public-api-route-class: durable_ingress
      x-ando-public-path: /v1/files
      x-ando-runtime-owner: api_platform
      x-ando-status-probe-owner: none
      x-ando-rollback-runtime: express
      x-ando-selected-runtime: express
      x-ando-target-runtime: express
  /files/{fileId}:
    get:
      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: []
      summary: Get a file
      tags:
      - Files
      x-ando-compatibility-mode: standard_public
      x-ando-migration-target: standard_public
      x-ando-rate-limit-policy: declared
      x-ando-route-id: api.api_v1_files_by_fileid.get
      x-ando-required: true
      x-ando-canonical-host: api.ando.so
      x-ando-documentation-owner: api_platform
      x-ando-principal-kind: workspace_api_key
      x-ando-public-api-route-class: public_data
      x-ando-public-path: /v1/files/:fileId
      x-ando-runtime-owner: api_platform
      x-ando-status-probe-owner: none
      x-ando-rollback-runtime: express
      x-ando-selected-runtime: express
      x-ando-target-runtime: express
  /files/{fileId}/complete:
    post:
      description: Completes a direct storage upload after the client has sent the bytes to the upload URL. The route verifies storage metadata and returns a ready file when the upload is attachable.
      operationId: completeFileUpload
      parameters:
      - description: File identifier.
        in: path
        name: fileId
        required: true
        schema:
          description: File identifier.
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                file:
                  summary: Completed file upload.
                  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: Completed file upload.
        '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: []
      summary: Complete a file upload
      tags:
      - Files
      x-ando-compatibility-mode: standard_public
      x-ando-migration-target: standard_public
      x-ando-rate-limit-policy: declared
      x-ando-route-id: api.api_v1_files_by_fileid_complete.post
      x-ando-required: true
      x-ando-canonical-host: api.ando.so
      x-ando-documentation-owner: api_platform
      x-ando-principal-kind: workspace_api_key
      x-ando-public-api-route-class: durable_ingress
      x-ando-public-path: /v1/files/:fileId/complete
      x-ando-runtime-owner: api_platform
      x-ando-status-probe-owner: none
      x-ando-rollback-runtime: express
      x-ando-selected-runtime: express
      x-ando-target-runtime: express
  /files/{fileId}/abort:
    post:
      description: Aborts an active direct storage upload and makes the file id unusable for message attachments.
      operationId: abortFileUpload
      parameters:
      - description: File identifier.
        in: path
        name: fileId
        required: true
        schema:
          description: File identifier.
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                file:
                  summary: Aborted file upload.
                  value:
                    data:
                      object: file
                      id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
                      status: aborted
                      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:02:00.000Z'
                      upload: null
                    file_id: file_01jzn7e61x3a7v9h2r7t2m3q4p
              schema:
                $ref: '#/components/schemas/PublicFileResponse'
          description: Aborted file upload.
        '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: []
      summary: Abort a file upload
      tags:
      - Files
      x-ando-compatibility-mode: standard_public
      x-ando-migration-target: standard_public
      x-ando-rate-limit-policy: declared
      x-ando-route-id: api.api_v1_files_by_fileid_abort.post
      x-ando-required: true
      x-ando-canonical-host: api.ando.so
      x-ando-documentation-owner: api_platform
      x-ando-principal-kind: workspace_api_key
      x-ando-public-api-route-class: durable_ingress
      x-ando-public-path: /v1/files/:fileId/abort
      x-ando-runtime-owner: api_platform
      x-ando-status-probe-owner: none
      x-ando-rollback-runtime: express
      x-ando-selected-runtime: express
      x-ando-target-runtime: express
components:
  schemas:
    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
    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
          - 'null'
        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
    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.
        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
    CreatePublicFileBody:
      additionalProperties: false
      description: Create a public file upload intent. The response returns a storage upload URL; send the file bytes to that URL, then complete the upload before attaching the returned file id to a message.
      properties:
        client_upload_id:
          description: Optional caller-generated identifier for correlating this file with the integration's local upload.
          type:
          - string
          - 'null'
        content_type:
          description: Declared MIME content type.
          type: string
        filename:
          description: Original filename.
          type: string
        purpose:
          description: File purpose.
          enum:
          - message_attachment
          type: string
        sha256:
          description: Optional lowercase hex-encoded SHA-256 digest of the file bytes. SHA-256 verification is supported only when size_bytes is less than or equal to 67108864.
          type:
          - string
          - 'null'
          maxLength: 64
        size_bytes:
          description: Declared file size in bytes.
          type: integer
          minimum: 1
      required:
      - filename
      - content_type
      - size_bytes
      type: object
    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
    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
              - 'null'
          required:
          - code
          - message
          type: object
      required:
      - error
      type: object
    PublicFileDownloadInstructions:
      additionalProperties: false
      description: Temporary storage download instructions.
      properties:
        expires_at:
          description: Download URL expiration timestamp.
          type:
          - string
          - 'null'
          format: date-time
        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:
    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.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Missing or invalid API key.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Conflict.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Forbidden.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Not found.
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Bad request.
  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
x-provenance:
  method: harvested
  publisher: Ando
  source: https://docs.ando.so/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)