API Documentation
Prospects
Agents
VoiceModels
Hive
HiveAgentLink
Actions
ActionAgentLink
Products
Conversations
ConversationProspectLink
Files
Upload Files
Upload file to Trata account to use in AI Agents
POST
/
v1
/
files
Copy
curl --request POST \
--url https://api.trata.ai/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=[
null
]'
Copy
[
{
"id": "<string>",
"orgId": "<string>",
"fileName": "<string>",
"fileUrl": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
Response
200
application/json
Successful Response
The response is of type Files · object[]
.
Copy
curl --request POST \
--url https://api.trata.ai/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=[
null
]'
Copy
[
{
"id": "<string>",
"orgId": "<string>",
"fileName": "<string>",
"fileUrl": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
Assistant
Responses are generated using AI and may contain mistakes.