Skip to main content
GET
/
api
/
v3
/
sources
List or retrieve sources
curl --request GET \
  --url https://paradigm.lighton.ai/api/v3/sources \
  --header 'Authorization: Bearer <token>'
{
  "document": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "thread_id": "<string>",
      "document_chunk": 123,
      "vision_chunk": 123,
      "certainty": 123,
      "distance": 123,
      "page_start": 123,
      "page_end": 123,
      "used_for_generation": true,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "web": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "thread_id": "<string>",
      "url": "<string>",
      "title": "<string>",
      "thumbnail": "<string>",
      "certainty": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

id
string

Unique identifier of the source

page
integer

Page number for pagination

per_page
integer

Items per page (default: 20, max: 100)

source_type
string

Filter by source type: "document" or "web"

thread_id
string

Filter by thread ID; verifies the source belongs to the thread

tool_call_id
string

Filter by tool call ID; verifies the source belongs to the tool call

turn_id
string

Filter by turn ID; verifies the source belongs to the turn

Response

Top-level response serializer for the unified sources endpoint.

It wraps two arrays: document and web, reusing the V3 item serializers.

document
object[]
required
web
object[]
required