cURL
curl --request GET \ --url https://api.usecortex.ai/list/sources \ --header 'Authorization: Bearer <token>' \ --header 'accept: <accept>'
Fetches all sources/documents for a given tenant.
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'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Bearer token (Firebase token)
Response content type
Tenant identifier
Sub-tenant identifier
List of sources returned successfully