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

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}",
    "source_ids": ["{SOURCE_ID1}", "{SOURCE_ID2}"]
  }'

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token (Firebase token)

Content-Type
string
default:application/json
required

Request content type

accept
string
default:application/json
required

Response content type

Body

application/json

Response

200

Sources returned successfully