Relationships
Authenticate using Bearer <jwt> format for internal endpoints
Which field to use when ordering the results.
aspect_type
is_private
from_content_type
to_content_type
from_object_id
to_object_id
Page number to retrieve (1-indexed).
Number of results per page. Defaults to the pagination class's page size and respects the configured maximum.
GET /relabase/api/v1/public/relationships/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"id": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"from_content_type": 1,
"from_object_id": 1,
"to_content_type": 1,
"to_object_id": 1,
"from_entity": {},
"to_entity": {},
"aspect_type": "mentor",
"strength": 1,
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"meta": {},
"is_private": true,
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z",
"role_contexts": [
{
"id": 1,
"relationship": 1,
"relationship_uuid": "123e4567-e89b-12d3-a456-426614174000",
"relationship_role": "text",
"description": "text",
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z"
}
],
"current_state": {}
}
]
}Authenticate using Bearer <jwt> format for internal endpoints
falsefalsePOST /relabase/api/v1/public/relationships/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"entity_type": "person",
"from_id": 1,
"to_id": 1,
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": false,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"entity_type": "person",
"from_id": 1,
"to_id": 1,
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": false,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Authenticate using Bearer <jwt> format for internal endpoints
GET /relabase/api/v1/public/relationships/{id}/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"from_content_type": 1,
"from_object_id": 1,
"to_content_type": 1,
"to_object_id": 1,
"from_entity": {},
"to_entity": {},
"aspect_type": "mentor",
"strength": 1,
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"meta": {},
"is_private": true,
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z",
"role_contexts": [
{
"id": 1,
"relationship": 1,
"relationship_uuid": "123e4567-e89b-12d3-a456-426614174000",
"relationship_role": "text",
"description": "text",
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z"
}
],
"current_state": {}
}Authenticate using Bearer <jwt> format for internal endpoints
PUT /relabase/api/v1/public/relationships/{id}/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": true,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": true,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Authenticate using Bearer <jwt> format for internal endpoints
DELETE /relabase/api/v1/public/relationships/{id}/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Authenticate using Bearer <jwt> format for internal endpoints
PATCH /relabase/api/v1/public/relationships/{id}/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": true,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"aspect_type": "mentor",
"strength": 1,
"is_private": true,
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Authenticate using Bearer <jwt> format for internal endpoints
Page number to retrieve (1-indexed).
Number of results per page. Defaults to the pagination class's page size and respects the configured maximum.
GET /relabase/api/v1/public/relationships/{id}/state-history/ HTTP/1.1
Host: api.rekap.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"from_content_type": 1,
"from_object_id": 1,
"to_content_type": 1,
"to_object_id": 1,
"from_entity": {},
"to_entity": {},
"aspect_type": "mentor",
"strength": 1,
"start_date": "2026-01-01",
"end_date": "2026-01-01",
"meta": {},
"is_private": true,
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z",
"role_contexts": [
{
"id": 1,
"relationship": 1,
"relationship_uuid": "123e4567-e89b-12d3-a456-426614174000",
"relationship_role": "text",
"description": "text",
"created": "2026-01-01T00:00:00.000Z",
"modified": "2026-01-01T00:00:00.000Z"
}
],
"current_state": {}
}Last updated