Skip to main content
GET
/
api
/
v2
/
files
/
{id}
Retrieve a document
curl --request GET \
  --url https://paradigm.lighton.ai/api/v2/files/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "object": "<string>",
  "created_at": 123,
  "filename": "<string>",
  "purpose": "<string>",
  "status": "<string>",
  "signature": "<string>",
  "content": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.lighton.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The ID of the document to retrieve.

Query Parameters

include_content
boolean

Include the content of the document in the response.

Response

200 - application/json

Response serializer for file retrieve results.

id
integer
required

Unique identifier for the file

object
string
required
read-only

Object type, always 'file'

created_at
integer
required
read-only

Unix timestamp of when the file was created

filename
string
required
read-only

Original filename of the file

purpose
string
required
read-only

Purpose of the file, always 'documents'

status
string
required
read-only

Processing status of the file

signature
string | null
required
read-only

TLSH hash for duplicate detection.

content
string

Content of the file (included only when include_content=true)