Skip to main content
GET
/
list
/
graph-relations-by-id
Error
A valid request URL is required to generate request examples
{
  "relations": [],
  "success": true,
  "message": "Relations retrieved successfully"
}
Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.

Examples

curl -X 'GET' \
'https://api.usecortex.ai/list/graph-relations-by-id?source_id=source-123' \
-H 'accept: application/json'

Authorizations

Authorization
string
header
required

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

Query Parameters

source_id
string
required

The source ID to fetch relations for

Example:

"CortexDoc1234"

tenant_id
string
default:""

Unique identifier for the tenant/organization

Example:

"tenant_1234"

sub_tenant_id
string | null

Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.

Example:

"sub_tenant_4567"

Response

Successful Response

relations
(TripletWithEvidence · object | null)[]
required

List of relations retrieved

Triple with multiple evidence items from different chunks

Example:
[]
success
boolean
default:true

Indicates whether the request was successful

Example:

true

message
string
default:Relations retrieved successfully

Response message describing the operation result