Skip to main content
GET
/
files
/
download
/
{file_id}
curl https://api.u1.archetypeai.app/v0.5/files/download/file-abc123 \
  -H "Authorization: Bearer $ATAI_API_KEY" \
  -o downloaded_file.csv
<binary file contents — Content-Type: application/octet-stream>

Documentation Index

Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This endpoint streams the raw contents of a previously uploaded file. The response body is application/octet-stream — the file as it was uploaded. The file must be in a downloadable state. Files that are still uploading, deleted, or corrupt will return 400.

Path Parameters

file_id
string
required
Identifier of the file to download

Response

The response body is the raw file bytes with Content-Type: application/octet-stream.
curl https://api.u1.archetypeai.app/v0.5/files/download/file-abc123 \
  -H "Authorization: Bearer $ATAI_API_KEY" \
  -o downloaded_file.csv
<binary file contents — Content-Type: application/octet-stream>