Overview

The Uploads API accepts base64-encoded file payloads from clients, stores them on the server, and returns a fetchable URL. The agent-chat bridge forwards the returned URL to the runtime as a file message part. Uploads are commonly used by the Allternit mobile composer to stage photos or documents before sending.

Base URL

All endpoints require a valid Bearer token in the Authorization header. See Authentication for details.

Endpoints

Upload file

Request body:
Limits:
  • Maximum decoded payload: 20 MB.
  • Upload IDs are alphanumeric and extensionless; the sidecar stores the original filename and media type.
Response:

Download upload

The response returns the stored bytes with the original Content-Type. If the sidecar is missing, application/octet-stream is used.

Error codes