Upload File
Uploads a file for use with a Vapi knowledge base.
Authentication
AuthorizationBearer
Authenticate server-side requests with a private Vapi API key. Create or copy a key from the [Vapi Dashboard](https://dashboard.vapi.ai) and send it in the `Authorization` header as `Bearer <token>`. Keep private API keys out of client-side code and public repositories.
Request
This endpoint expects a multipart form containing a file.
file
This is the File you want to upload for use with the Knowledge Base.
Response
File uploaded successfully
id
This is the unique identifier for the file.
orgId
This is the unique identifier for the org that this file belongs to.
createdAt
This is the ISO 8601 date-time string of when the file was created.
updatedAt
This is the ISO 8601 date-time string of when the file was last updated.
object
The object type. This is always file.
status
The current processing status of the uploaded file.
name
This is the name of the file. This is just for your own reference.
originalName
The original name of the uploaded file.
bytes
The size of the uploaded file in bytes.
purpose
The intended use assigned to the uploaded file.
mimetype
The MIME type of the uploaded file.
key
The object-storage key for the uploaded file.
path
The object-storage path for the uploaded file.
bucket
The object-storage bucket containing the uploaded file.
url
The URL used to access the uploaded file.
parsedTextUrl
The URL used to access text extracted from the file.
parsedTextBytes
The size of the extracted text in bytes.
metadata
Additional metadata associated with the uploaded file.
Errors
400
Bad Request Error