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" ] }'
Fetches specific sources/documents by their IDs.
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}"] }'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Bearer token (Firebase token)
Request content type
Response content type
Sources returned successfully