Skip to main content
GET
/
api
/
core
/
files
/
{file_hash}
Get single file
curl --request GET \
  --url https://api.example.com/api/core/files/{file_hash} \
  --header 'Authorization: Bearer <token>'
{
  "stem": "<string>",
  "extension": "<string>",
  "hash": "<string>",
  "num_pages": 123,
  "num_chunks": 123,
  "num_tokens": 123,
  "view_uri": "<string>",
  "download_uri": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: 'Bearer '

Path Parameters

file_hash
string
required

Query Parameters

source_type
string
required

Type of the file source

source_id
string
required

ID of the file source

Response

Successful Response

Response schema for file information. Used in multiple file-related endpoints.

stem
string
required
extension
string
required
hash
string
required
num_pages
integer
required
num_chunks
integer
required
num_tokens
integer
required
view_uri
string
required
download_uri
string
required