Skip to main content
POST
/
v1
/
files
Upload Files
curl --request POST \
  --url https://api.trata.ai/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
[
  {
    "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
files
file[]
required

Response

Successful Response

id
string
orgId
string
fileName
string
fileUrl
string
createdBy
string
createdAt
string<date-time>
updatedBy
string
updatedAt
string<date-time>
I