POST
/
list
/
sources_by_id
curl --request POST \
  --url https://api.usecortex.ai/list/sources_by_id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tenant_id": "tenant_456",
  "sub_tenant_id": "subtenant_123",
  "source_ids": [
    "doc_123",
    "doc_456"
  ]
}'

Fetches specific sources/documents by their IDs.

Sample Request

curl --location 'https://api.usecortex.ai/list/sources_by_id' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "tenant_id": "{TENANT_ID}",
    "sub_tenant_id": "{SUB_TENANT_ID}",
    "source_ids": ["{SOURCE_ID1}", "{SOURCE_ID2}"]
  }'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • tenant_id (string, required): Tenant identifier
  • sub_tenant_id (string, optional): Optional filter
  • source_ids (list of strings, required): IDs of documents

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200

Sources returned successfully

POST
/
list
/
sources_by_id
curl --request POST \
  --url https://api.usecortex.ai/list/sources_by_id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tenant_id": "tenant_456",
  "sub_tenant_id": "subtenant_123",
  "source_ids": [
    "doc_123",
    "doc_456"
  ]
}'

Fetches specific sources/documents by their IDs.

Sample Request

curl --location 'https://api.usecortex.ai/list/sources_by_id' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "tenant_id": "{TENANT_ID}",
    "sub_tenant_id": "{SUB_TENANT_ID}",
    "source_ids": ["{SOURCE_ID1}", "{SOURCE_ID2}"]
  }'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • tenant_id (string, required): Tenant identifier
  • sub_tenant_id (string, optional): Optional filter
  • source_ids (list of strings, required): IDs of documents

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200

Sources returned successfully