List the graph's relation types.
GET/api/v1/graph/relation-typescustom_fields:read
Every relation type of the organisation's graph, each with the fields and templates configured to use it (used_by). Needs View Graph Relation Types, as the Portal's Relations screen does. The vocabulary alone, for any caller, is get_graph_schema.
| Scope | custom_fields:read |
| Asynchronous | No |
| MCP tool | list_graph_relation_types |
| Portal permissions | view_graph_relation_types |
| Paging | snapshot |
| Default order | relation_type_id |
| Sort fields | relation_type_id |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
items | array of GraphRelationType | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
method_not_allowed | 405 |
not_acceptable | 406 |
cursor_expired | 410 |
wrong_region | 421 |
invalid_cursor | 422 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
Schemas
GraphRelationType
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Required | |
color | string or null | Required | |
decision_category | string or null | Required | |
derivation | string or null | Required | Set for a relation type the engine derives (it cannot be deleted). |
external_code | string or null | Required | |
from_kinds | array of string | Required | What the relation can start from: document, register_row. |
impact_direction | string or null | Required | Set with impact_weight. |
impact_weight | number or null | Required | Above 0 up to 1, for an impact edge; null when the relation is not one. |
inverse_label | string or null | Required | How the relation reads from the other end; null when it reads the same. |
is_active | boolean | Required | |
is_symmetric | boolean | Required | |
is_transitive | boolean | Required | |
label | string | Required | |
navigation_audience | string or null | Required | Who sees the relation when navigating: all or analyst. |
relation_type_id | string | Required | The code, 2 to 40 capital letters, digits and underscores. |
to_custom_field_template_id | string or null | Required | The register a relation ends at, when it is fixed. |
to_kinds | array of string | Required | What the relation can end at: document, register_row. |
used_by | array of GraphUse | Required | The fields and templates configured to use the relation type. |
GraphUse
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Required | The field; null for a template-level use. |
custom_field_template_id | string or null | Required | The template; null for a use outside a template. |
label | string | Required | The template, or the template and field, as the builder names it. |
where | string or null | Required | For a normaliser: field_role or document_link, or null. |