Skip to main content
GET
/
v1
/
relationships
List relationship definitions
curl --request GET \
  --url https://app.nex.ai/api/developers/v1/relationships \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "id": "789",
      "type": "one_to_many",
      "entity_definition_1_id": "123",
      "entity_definition_2_id": "456",
      "entity_1_to_2_predicate": "has",
      "entity_2_to_1_predicate": "belongs to",
      "created_at": "2024-01-15T10:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication (format: "Bearer YOUR_API_KEY")

Response

List of relationship definitions

data
object[]
Last modified on March 7, 2026