Relationships

List relationship definitions

Changed on

Retrieves all relationship definitions in the workspace

get/v1/relationships

Request

  • Base URL
    https://app.nex.ai/api/developers
  • Auth
    API key in header Authorization

Response

List of relationship definitions

Example response

{
  "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"
    }
  ]
}

Changes