GET
/
list
/
sources
curl --request GET \
  --url https://api.usecortex.ai/list/sources \
  --header 'Authorization: Bearer <token>'

Fetches all sources/documents for a given tenant.

Sample Request

curl --location 'https://api.usecortex.ai/list/sources?tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json

🧾 Parameters

  • tenant_id (string, required): Tenant identifier (query parameter)
  • sub_tenant_id (string, optional): Optional filter (query parameter)

Authorizations

Authorization
string
header
required

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

Query Parameters

tenant_id
string
required

Tenant identifier

sub_tenant_id
string

Optional filter

Response

200

List of sources returned successfully

GET
/
list
/
sources
curl --request GET \
  --url https://api.usecortex.ai/list/sources \
  --header 'Authorization: Bearer <token>'

Fetches all sources/documents for a given tenant.

Sample Request

curl --location 'https://api.usecortex.ai/list/sources?tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json

🧾 Parameters

  • tenant_id (string, required): Tenant identifier (query parameter)
  • sub_tenant_id (string, optional): Optional filter (query parameter)

Authorizations

Authorization
string
header
required

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

Query Parameters

tenant_id
string
required

Tenant identifier

sub_tenant_id
string

Optional filter

Response

200

List of sources returned successfully