cURL
curl --request GET \ --url https://api.example.com/api/core/files/{file_hash} \ --header 'Authorization: Bearer <token>'
{ "stem": "<string>", "extension": "<string>", "hash": "<string>", "view_uri": "<string>", "download_uri": "<string>", "num_pages": 123, "num_chunks": 123, "num_tokens": 123, "document_type": "document" }
Get information about a specific file
Bearer token authentication. Format: 'Bearer '
Type of the file source
knowledge_source
chat
ID of the file source
Successful Response
document
image
Was this page helpful?