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