File API
Upload file
POST
/
v1
/
files
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Content-Disposition
string
requiredThe disposition type of the file, typically used to indicate the form-data name. Use attachment
with the filename parameter to specify the name of the file, for example: attachment; filename="example.pdf"
.
Content-Type
string
requiredThe MIME type of the file being uploaded. Supports txt, doc, docx, ppt, pptx, jpg, png, eml, html, pdf, srt, csv, xls, and xlsx files.
Content-Length
integer
requiredThe size of the file in bytes.
Body
The body is of type file
.
Response
200 - application/json
id
string
requiredA unique identifier of the file.
created_at
string
requiredThe timestamp when the file was uploaded.
name
string
requiredThe name of the file.
graph_ids
string[]
requiredA list of graph IDs that the file is associated with.
status
string
requiredThe processing status of the file.