Skip to main content

File upload

Uploads to Data Hub start with POST /v1/files. The platform returns an upload target and a file id.

curl -sS https://api.alt.advania.ai/v1/files \
-H "Authorization: Bearer $ALT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filename": "contract-2024.pdf",
"content_type": "application/pdf",
"size_bytes": 2048576
}'

Once the file is uploaded and attached to a Knowledge Base, the indexing pipeline runs asynchronously.

Full request/response shape, batch endpoints, and download URLs are in the interactive OpenAPI.