curl https://platform.u1.archetypeai.app/api/files/info \
-H "Authorization: Bearer $ATAI_API_KEY"
import requests
import os
api_key = os.environ.get("ATAI_API_KEY")
response = requests.get(
"https://platform.u1.archetypeai.app/api/files/info",
headers={"Authorization": f"Bearer {api_key}"}
)
print(response.json())
const response = await fetch(
"https://platform.u1.archetypeai.app/api/files/info",
{
headers: {
Authorization: `Bearer ${process.env.ATAI_API_KEY}`,
},
}
);
const data = await response.json();
console.log(data);
{
"num_files": 142,
"num_bytes": 4831785472,
"num_ingested": 138,
"last_updated": 1745803938.214
}
{
"errors": [
{
"code": "unauthorized_request",
"message": "Unauthorized or invalid access.",
"suggestion": "Provide valid authentication credentials and ensure they have the required permissions.",
"error_uid": "err-xxxxxxxx"
}
]
}
Files API
Get Files Info
Retrieve aggregated file statistics for the authenticated organization
GET
/
files
/
info
curl https://platform.u1.archetypeai.app/api/files/info \
-H "Authorization: Bearer $ATAI_API_KEY"
import requests
import os
api_key = os.environ.get("ATAI_API_KEY")
response = requests.get(
"https://platform.u1.archetypeai.app/api/files/info",
headers={"Authorization": f"Bearer {api_key}"}
)
print(response.json())
const response = await fetch(
"https://platform.u1.archetypeai.app/api/files/info",
{
headers: {
Authorization: `Bearer ${process.env.ATAI_API_KEY}`,
},
}
);
const data = await response.json();
console.log(data);
{
"num_files": 142,
"num_bytes": 4831785472,
"num_ingested": 138,
"last_updated": 1745803938.214
}
{
"errors": [
{
"code": "unauthorized_request",
"message": "Unauthorized or invalid access.",
"suggestion": "Provide valid authentication credentials and ensure they have the required permissions.",
"error_uid": "err-xxxxxxxx"
}
]
}
Requires version 1.1.5 or later of the Archetype platform.
Overview
This endpoint returns aggregated statistics about all files belonging to your organization, including total file count, total bytes, and ingestion progress.Response
curl https://platform.u1.archetypeai.app/api/files/info \
-H "Authorization: Bearer $ATAI_API_KEY"
import requests
import os
api_key = os.environ.get("ATAI_API_KEY")
response = requests.get(
"https://platform.u1.archetypeai.app/api/files/info",
headers={"Authorization": f"Bearer {api_key}"}
)
print(response.json())
const response = await fetch(
"https://platform.u1.archetypeai.app/api/files/info",
{
headers: {
Authorization: `Bearer ${process.env.ATAI_API_KEY}`,
},
}
);
const data = await response.json();
console.log(data);
{
"num_files": 142,
"num_bytes": 4831785472,
"num_ingested": 138,
"last_updated": 1745803938.214
}
{
"errors": [
{
"code": "unauthorized_request",
"message": "Unauthorized or invalid access.",
"suggestion": "Provide valid authentication credentials and ensure they have the required permissions.",
"error_uid": "err-xxxxxxxx"
}
]
}
Was this page helpful?