cURL
curl --request POST \ --url https://api.trata.ai/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'files=<string>' \ --form files.items='@example-file'
[ { "id": "<string>", "orgId": "<string>", "fileName": "<string>", "fileUrl": "<string>", "createdBy": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedBy": "<string>", "updatedAt": "2023-11-07T05:31:56Z" } ]
Upload file to Trata account to use in AI Agents
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response