Skip to main content
POST
/
api
/
core
/
files
Upload single file
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>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: 'Bearer '

Query Parameters

source_type
string
required
source_id
string
required

Body

multipart/form-data
file
file
required

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