cURL
curl --request POST \ --url https://api.example.com/api/core/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'file=<string>'
{ "stem": "<string>", "extension": "<string>", "hash": "<string>", "view_uri": "<string>", "download_uri": "<string>", "num_pages": 123, "num_chunks": 123, "num_tokens": 123, "document_type": "document" }
Upload a file to the specified source
Bearer token authentication. Format: 'Bearer '
knowledge_source
chat
Successful Response
document
image
Was this page helpful?