Upload File

Headers

AuthorizationstringRequired

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

Request

This endpoint expects a multipart form containing a file.
filefileRequired

This is the File you want to upload for use with the Knowledge Base.

Response

File uploaded successfully

idstring

This is the unique identifier for the file.

orgIdstring

This is the unique identifier for the org that this file belongs to.

createdAtdatetime

This is the ISO 8601 date-time string of when the file was created.

updatedAtdatetime

This is the ISO 8601 date-time string of when the file was last updated.

object"file"OptionalDefaults to file
statusenumOptional
Allowed values:
namestringOptional<=40 characters

This is the name of the file. This is just for your own reference.

originalNamestringOptional
bytesdoubleOptional
purposestringOptional
mimetypestringOptional
keystringOptional
pathstringOptional
bucketstringOptional
urlstringOptional
parsedTextUrlstringOptional
parsedTextBytesdoubleOptional
metadatamap from strings to anyOptional

Errors