Skip to main content
POST
Upload File

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.