Upload

Upload Documents

Beta
POST

Request

This endpoint expects a multipart form containing a file.
filesfile

Response

This endpoint returns an object
success
boolean
uploaded_documents
list of objectsOptional
POST
1curl -X POST https://api.athenaintelligence.ai/api/v0/upload \
2 -H "X-API-KEY: <apiKey>" \
3 -H "Content-Type: multipart/form-data" \
4 -F files=@<file1>
200Successful
1{
2 "success": true,
3 "uploaded_documents": [
4 {
5 "file": "",
6 "size": 12345,
7 "filename": "athena.pdf",
8 "content_type": "application/pdf",
9 "status": true,
10 "error": "",
11 "message": "File uploaded successfully",
12 "athena_doc_id": "doc_9249292-d118-42d3-95b4-00eccfe0754f"
13 }
14 ]
15}