Skip to main content
POST
/
upload
Upload File
curl --request POST \
  --url https://platform.aifano.com/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "file_id": "<string>",
  "presigned_url": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use your Aifano API key (starts with ak_live_) as the Bearer token.

Query Parameters

extension
string

Force a specific file extension (e.g. .png).

Body

multipart/form-data
file
file
required

The document file to upload.

Response

File uploaded

file_id
string
required

File reference in aifano://file_id format.

presigned_url
string | null

Presigned URL for direct access.