Files
Upload File
POST
/
file
curl --request POST \
--url https://api.vapi.ai/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data'
{
"object": "file",
"status": "indexed",
"name": "<string>",
"originalName": "<string>",
"bytes": 123,
"purpose": "<string>",
"mimetype": "<string>",
"key": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"metadata": {},
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Body
multipart/form-data
Response
201
application/json
File uploaded successfully
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.vapi.ai/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data'
{
"object": "file",
"status": "indexed",
"name": "<string>",
"originalName": "<string>",
"bytes": 123,
"purpose": "<string>",
"mimetype": "<string>",
"key": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"metadata": {},
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.