Manage project CI/CD pipelines, logical environments, project templates, entities and entity types, entity media, entity relationships and relationship types, entity permission grants, and saved views.
GET /v1/entities/{entityId}
Get an entity
Returns a single entity by identifier. Requires `project.view` permission. An entity the caller cannot see is reported as `NOT_FOUND`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Responses
| Status | Description |
200 | The entity record. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks read access on the entity. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
project_id | string<uuid> | |
entity_type_id | string<uuid> | |
parent_id | string<uuid> | |
name | string | |
status | string | |
metadata | object | Arbitrary field bag (top-level key merge on update). |
owner_scope | string (enum) userprojectgroupdepartmentorg | |
owner_id | string<uuid> | |
state_uuid | string<uuid> | Current workflow state (null when no workflow assigned). |
created_by_user_id | string<uuid> | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
PUT /v1/entities/{entityId}
Update an entity
Updates one or more fields of an entity. The `metadata` bag uses a top-level key merge: supplied keys set/overwrite; a `null` value removes a key; omitted keys are preserved. Supply `expected_updated_at` for optimistic-concurrency control.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | no | |
data | object | no | Alias for `metadata`. |
metadata | object | no | Field bag, top-level key merge. Send a key as `null` to delete it. |
status | string | no | |
parent_id | string<uuid> | no | Send `null` to detach from parent. |
owner_scope | string (enum) userprojectgroupdepartmentorg | no | |
owner_id | string<uuid> | no | |
expected_updated_at | string<date-time> | no | Optimistic-concurrency precondition. When provided the update fails with `CONFLICT` if the row was modified since this timestamp. |
Responses
| Status | Description |
200 | Entity updated. |
400 | |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks EDIT right, or a field-level edit is denied. The message contains the offending field key for field-level denials. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | `CONFLICT`: optimistic-concurrency: the entity was modified by another session since `expected_updated_at`. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
updated | boolean | |
DELETE /v1/entities/{entityId}
Soft-delete an entity
Soft-deletes an entity (sets `deleted_at`). The entity is hidden from list/get responses after deletion.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Responses
| Status | Description |
200 | Entity deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
deleted | boolean | |
GET /v1/entities/{entityId}/effective-permissions
Get effective permissions on an entity
Returns the computed five-right effective permissions for the caller (or a specified in-org user) on the entity, with contributing grant sources.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
user_id | query | string<uuid> | no | Inspect effective permissions for another in-org user. Restricted to org admins and resource creators. |
Responses
| Status | Description |
200 | Effective permission set. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
can_visibility | boolean | |
can_read | boolean | |
can_edit | boolean | |
can_delete | boolean | |
can_purge | boolean | |
sources | array of object | List of contributing grants that produced the effective rights. |
POST /v1/entities/{entityId}/purge
Hard-purge an entity
Permanently deletes an entity and all associated data. This operation is irreversible.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Responses
| Status | Description |
200 | Entity permanently deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entities/{entityId}/transition
Transition entity workflow state
Moves an entity to a new workflow state. An illegal workflow edge returns `CONFLICT`; an unknown state returns `VALIDATION_ERROR`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityId | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
to_state_id | string<uuid> | yes | Target workflow-state identifier. |
expected_updated_at | string<date-time> | no | Optimistic-concurrency precondition (same contract as entity update). |
Responses
| Status | Description |
200 | Entity transitioned to the new workflow state. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (unknown `to_state_id`). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks edit access or does not meet the step's role/group requirement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | `CONFLICT`: illegal workflow edge (no transition defined from the current state to `to_state_id`), or optimistic-concurrency mismatch. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entities/{type}/{id}/pin
Pin an entity
Pins (bookmarks) an entity to the authenticated user's sidebar. The caller must have view access on the entity (`project.view` permission). Per-user cap of 20 pins per entity type; exceeding the cap returns `CONFLICT`. 403 and 404 responses collapse to a uniform `NOT_FOUND` (anti-enumeration).
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
type | path | string | yes | Entity type key (e.g. `project`). Unknown types return `400 INVALID_PARAMETER`. |
id | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
position | integer | no | Optional display position in the pinned list. |
Responses
| Status | Description |
201 | Entity pinned. |
400 | `INVALID_PARAMETER` (unknown type), `INVALID_ID_FORMAT` (bad entity UUID), `INVALID_JSON` (malformed body), or `VALIDATION_ERROR` (invalid `position`). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
404 | `NOT_FOUND`: entity does not exist, is not visible to the caller, or the caller lacks view access (anti-enumeration: 403 collapses to 404). |
409 | `CONFLICT`: per-user pin cap (20) for this entity type has been reached. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
user_id | string<uuid> | |
entity_type | string | |
entity_id | string<uuid> | |
position | integer | |
created_at | string<date-time> | |
DELETE /v1/entities/{type}/{id}/pin
Unpin an entity
Removes an entity pin for the authenticated user. As with pin creation, 403 and 404 responses collapse to `NOT_FOUND` (anti-enumeration). The DELETE body must be empty.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
type | path | string | yes | Entity type key. |
id | path | string<uuid> | yes | Entity identifier (UUIDv7). |
Responses
| Status | Description |
200 | Entity unpinned. |
400 | `INVALID_PARAMETER` (unknown type), `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (non-empty body). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
404 | `NOT_FOUND`: pin or entity not found, or caller lacks view access (anti-enumeration). |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/entity-permissions
List entity permission grants
Returns entity permission grants for the caller's organization. Supports filtering by resource type and resource id. Paginated.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
resource_type | query | string (enum) | no | Filter by resource type. |
resource_id | query | string<uuid> | no | Filter to a specific resource (UUIDv7). |
include_revoked | query | boolean | no | When `true`, include revoked grants. |
page | query | integer | no | 1-based page number. |
page_size | query | integer | no | Records per page (max 200). |
Responses
| Status | Description |
200 | List of permission grants. |
400 | `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entity-permissions
Create an entity permission grant
Creates a five-right permission grant on an entity or entity type. Exactly one of `resource_id` or `criteria` must be provided. Criteria-based grants are restricted to org admins.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
resource_type | string (enum) entityentity_type | yes | |
resource_id | string<uuid> | no | Specific resource identifier. Mutually exclusive with `criteria`. |
criteria | object | no | JSONB criteria for a rule-based grant (org admin only). Mutually exclusive with `resource_id`. |
subject_scope | string (enum) userprojectgroupdepartmentorg | yes | |
subject_id | string<uuid> | no | |
can_visibility | boolean | no | |
can_read | boolean | no | |
can_edit | boolean | no | |
can_delete | boolean | no | |
can_purge | boolean | no | |
permission_flag | string | no | Optional named custom permission flag (must match `^[a-z][a-z0-9_]{0,63}$`). |
Responses
| Status | Description |
201 | Grant created. |
400 | `INVALID_JSON` or `VALIDATION_ERROR` (missing `resource_id`/`criteria`, both supplied, invalid permission flag name). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
resource_type | string (enum) entityentity_type | |
resource_id | string<uuid> | |
criteria | object | |
subject_scope | string (enum) userprojectgroupdepartmentorg | |
subject_id | string<uuid> | |
can_visibility | boolean | |
can_read | boolean | |
can_edit | boolean | |
can_delete | boolean | |
can_purge | boolean | |
permission_flag | string | |
revoked_at | string<date-time> | |
created_at | string<date-time> | |
DELETE /v1/entity-permissions/{permissionId}
Revoke an entity permission grant
Revokes an entity or entity-type permission grant.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
permissionId | path | string<uuid> | yes | Permission grant identifier (UUIDv7). |
Responses
| Status | Description |
200 | Grant revoked. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/entity-types
List entity types
Returns the entity types visible to the caller's organization. Optionally filtered by project. Requires `project.view` permission.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
project_id | query | string<uuid> | no | Filter to entity types associated with a specific project. |
limit | query | integer | no | Maximum number of records to return. Default and ceiling are endpoint-specific (commonly default 25 to 50, max 100). |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | List of entity types. |
400 | `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entity-types
Create an entity type
Creates a new entity type schema in the caller's organization. Requires `entity_type.create` permission.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
name | string | yes | |
slug | string | no | URL-safe identifier. Auto-generated from `name` when omitted. |
description | string | no | |
icon | string | no | |
color | string | no | |
parent_uuid | string<uuid> | no | |
category | string | no | |
fields | array of object | no | |
ai_instructions | object | no | |
relationship_mode | string (enum) openrestricted | no | |
html_template | string | no | |
css_styles | string | no | |
sample_data | string | no | |
render_template_full | string | no | |
render_template_full_styles | string | no | |
render_template_icon | string | no | |
render_template_icon_styles | string | no | |
owner_scope | string (enum) userprojectgroupdepartmentorg | no | |
owner_id | string<uuid> | no | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | no | |
permission_flags | object | no | |
settings | object | no | |
Responses
| Status | Description |
201 | Entity type created. |
400 | |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | `CONFLICT`: an entity type with that name or slug already exists. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
name | string | |
slug | string | |
description | string | |
icon | string | |
color | string | Hex color code. |
parent_uuid | string<uuid> | |
category | string | |
fields | array of object | |
ai_instructions | object | |
relationship_mode | string (enum) openrestricted | |
html_template | string | |
css_styles | string | |
sample_data | string | |
render_template_full | string | Full-card Handlebars/HTML render template (max 256 KiB). |
render_template_full_styles | string | CSS for the full-card template (max 64 KiB). |
render_template_icon | string | Icon-size render template (max 256 KiB). |
render_template_icon_styles | string | |
owner_scope | string (enum) userprojectgroupdepartmentorg | |
owner_id | string<uuid> | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | |
permission_flags | object | |
settings | object | |
adopted_source_version | integer | |
source_current_version | integer | Non-null when this type is a subscriber clone; compare with `adopted_source_version` to detect available updates. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
GET /v1/entity-types/{entityTypeId}
Get an entity type
Returns a single entity type by identifier including render templates. Requires `project.view` permission. An invisible or non-existent entity type returns `NOT_FOUND`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7). |
Responses
| Status | Description |
200 | The entity type record. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
name | string | |
slug | string | |
description | string | |
icon | string | |
color | string | Hex color code. |
parent_uuid | string<uuid> | |
category | string | |
fields | array of object | |
ai_instructions | object | |
relationship_mode | string (enum) openrestricted | |
html_template | string | |
css_styles | string | |
sample_data | string | |
render_template_full | string | Full-card Handlebars/HTML render template (max 256 KiB). |
render_template_full_styles | string | CSS for the full-card template (max 64 KiB). |
render_template_icon | string | Icon-size render template (max 256 KiB). |
render_template_icon_styles | string | |
owner_scope | string (enum) userprojectgroupdepartmentorg | |
owner_id | string<uuid> | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | |
permission_flags | object | |
settings | object | |
adopted_source_version | integer | |
source_current_version | integer | Non-null when this type is a subscriber clone; compare with `adopted_source_version` to detect available updates. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
PUT /v1/entity-types/{entityTypeId}
Update an entity type
Updates an entity type schema. Requires `entity_type.update` permission.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | no | |
description | string | no | |
icon | string | no | |
color | string | no | |
parent_uuid | string<uuid> | no | |
category | string | no | |
fields | array of object | no | |
ai_instructions | object | no | |
relationship_mode | string (enum) openrestricted | no | |
html_template | string | no | |
css_styles | string | no | |
sample_data | string | no | |
render_template_full | string | no | |
render_template_full_styles | string | no | |
render_template_icon | string | no | |
render_template_icon_styles | string | no | |
owner_scope | string (enum) userprojectgroupdepartmentorg | no | |
owner_id | string<uuid> | no | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | no | |
permission_flags | object | no | |
changelog | string | no | Optional human-readable change note. |
Responses
| Status | Description |
200 | Updated entity type. |
400 | |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | `CONFLICT`: a field change is blocked because downstream entities are using the affected field; the response `details` contains which field and how many entities are affected. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
name | string | |
slug | string | |
description | string | |
icon | string | |
color | string | Hex color code. |
parent_uuid | string<uuid> | |
category | string | |
fields | array of object | |
ai_instructions | object | |
relationship_mode | string (enum) openrestricted | |
html_template | string | |
css_styles | string | |
sample_data | string | |
render_template_full | string | Full-card Handlebars/HTML render template (max 256 KiB). |
render_template_full_styles | string | CSS for the full-card template (max 64 KiB). |
render_template_icon | string | Icon-size render template (max 256 KiB). |
render_template_icon_styles | string | |
owner_scope | string (enum) userprojectgroupdepartmentorg | |
owner_id | string<uuid> | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | |
permission_flags | object | |
settings | object | |
adopted_source_version | integer | |
source_current_version | integer | Non-null when this type is a subscriber clone; compare with `adopted_source_version` to detect available updates. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
DELETE /v1/entity-types/{entityTypeId}
Soft-delete an entity type
Soft-deletes an entity type. Requires `entity_type.delete` permission. An entity type that has already been deleted returns `NOT_FOUND`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7). |
Responses
| Status | Description |
200 | Entity type deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entity-types/{entityTypeId}/adopt-package-update
Adopt a publisher package update for an entity type
Pulls the latest publisher package update into a subscriber clone entity type. Useful when auto-propagation was skipped because the subscriber had locally diverged. Check `adopted_source_version` versus `source_current_version` on the entity type to detect whether an update is available. Requires `entity_type.update` permission.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7) of the subscriber clone. |
Responses
| Status | Description |
200 | Package update adopted. |
400 | `INVALID_ID_FORMAT` or `VALIDATION_ERROR`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | `NOT_FOUND`: the packaged entity type clone was not found. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
name | string | |
slug | string | |
description | string | |
icon | string | |
color | string | Hex color code. |
parent_uuid | string<uuid> | |
category | string | |
fields | array of object | |
ai_instructions | object | |
relationship_mode | string (enum) openrestricted | |
html_template | string | |
css_styles | string | |
sample_data | string | |
render_template_full | string | Full-card Handlebars/HTML render template (max 256 KiB). |
render_template_full_styles | string | CSS for the full-card template (max 64 KiB). |
render_template_icon | string | Icon-size render template (max 256 KiB). |
render_template_icon_styles | string | |
owner_scope | string (enum) userprojectgroupdepartmentorg | |
owner_id | string<uuid> | |
default_entity_owner_scope | string (enum) creatorprojectgroupdepartmentorg | |
permission_flags | object | |
settings | object | |
adopted_source_version | integer | |
source_current_version | integer | Non-null when this type is a subscriber clone; compare with `adopted_source_version` to detect available updates. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
GET /v1/entity-types/{entityTypeId}/effective-permissions
Get effective permissions on an entity type
Returns computed five-right effective permissions for the caller (or a specified in-org user) on an entity type.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7). |
user_id | query | string<uuid> | no | Inspect effective permissions for another in-org user (org admin / resource creator only). |
Responses
| Status | Description |
200 | Effective permission set. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
can_visibility | boolean | |
can_read | boolean | |
can_edit | boolean | |
can_delete | boolean | |
can_purge | boolean | |
sources | array of object | List of contributing grants that produced the effective rights. |
POST /v1/entity-types/{entityTypeId}/purge
Hard-purge an entity type
Permanently deletes an entity type and all entities of that type. This operation is irreversible.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entityTypeId | path | string<uuid> | yes | Entity type identifier (UUIDv7). |
Responses
| Status | Description |
200 | Entity type permanently deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/entity-types/{id}/import/commit
Import the ready rows of a preview
Sends the previewed file again with its `preview_token`; every row is checked again and the ready rows are created together, or none is. Undo by deleting the returned records. Requires `entity.create` and membership of the project.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Entity type identifier. |
Request Body
| Field | Type | Required | Description |
preview_token | string | yes | |
project_id | string<uuid> | yes | |
mapping | object | yes | |
csv | string | yes | The previewed file. |
Responses
| Status | Description |
201 | The records were created. |
400 | `VALIDATION_ERROR`: the body or the file is malformed. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
402 | A plan limit (`ENTITY_CAP_EXCEEDED` or `DB_STORAGE_CAP_EXCEEDED`) would be exceeded. Nothing is created. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: no such entity type or project. |
409 | `IMPORT_PREVIEW_STALE`: the file, the mapping or the entity type changed since the preview; preview again. |
413 | `IMPORT_TOO_LARGE`: more than 5,000 rows or 5 MB. |
201 response body: data fields
| Field | Type | Description |
imported | integer | |
skipped_error | integer | |
entity_ids | array of string | |
POST /v1/entity-types/{id}/import/preview
Preview a record import from CSV
Reads a CSV file (UTF-8, at most 5 MB and 5,000 rows; save a spreadsheet as CSV first) and checks every row against the entity type without saving anything. The `mapping` query parameter is a JSON object from column header to field key. Each row is `ready` or `error` with its messages; a hidden field is optional. Requires `entity.create` and membership of the project.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Entity type identifier. |
project_id | query | string<uuid> | yes | Project the records will belong to. |
mapping | query | string | yes | JSON object from column header to field key. |
Request Body
| Field | Type | Required | Description |
csv | string | yes | The text of the CSV file. |
Responses
| Status | Description |
200 | The preview. |
400 | `VALIDATION_ERROR`: the file is not UTF-8 CSV, a column is duplicated or a mapped field does not exist. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: no such entity type or project. |
409 | `IMPORT_PREVIEW_STALE`: the file, the mapping or the entity type changed since the preview. |
413 | `IMPORT_TOO_LARGE`: more than 5,000 rows or 5 MB. |
200 response body: data fields
| Field | Type | Description |
total | integer | |
ready | integer | |
error | integer | |
rows | array of object | |
preview_token | string | Pass it to the commit call with the same file and mapping. |
GET /v1/environments
List environments
Returns the logical deployment environments (dev, staging, preprod, prod) that the authenticated user can access within their organization. The `multi-environment` feature flag must be enabled; the endpoint is gated server-side.
Auth Session JWT (Bearer)
Responses
| Status | Description |
200 | Array of environment objects the caller can access. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks organization membership or the `multi-environment` feature is disabled. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/environments
Create an environment
Creates a new non-production logical environment (`dev`, `staging`, or `preprod`) for the caller's organization. Requires organization admin role and the `multi-environment` feature flag. The `prod` key is reserved and cannot be created via this route.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
env_key | string (enum) devstagingpreprod | yes | The environment tier to create. `prod` cannot be created via this surface. |
display_name | string | no | Optional human-readable label for the environment. |
{
"env_key": "staging",
"display_name": "Staging"
}
Responses
| Status | Description |
201 | Environment created. |
400 | `INVALID_JSON` (malformed body) or `VALIDATION_ERROR` (unknown `env_key`, extra fields). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `INSUFFICIENT_PERMISSIONS`: caller is not an org admin or the feature is disabled. |
409 | `CONFLICT`: an environment with that key already exists in this organization. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | Environment identifier (UUIDv7). |
org_id | string<uuid> | Owning organization identifier. |
env_key | string (enum) devstagingpreprodprod | Canonical environment key. |
display_name | string | Human-readable display name. |
is_default | boolean | True for the production (default) environment. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
GET /v1/environments/{id}/grants
List environment grants
Returns the access grants for a specific environment.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Environment identifier (UUIDv7). |
include_revoked | query | boolean | no | When `true`, include revoked grants in the response. Defaults to `false`. |
Responses
| Status | Description |
200 | List of grants for the environment. |
400 | `INVALID_ID_FORMAT`: the `id` path parameter is not a valid UUID. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `INSUFFICIENT_PERMISSIONS`: caller is not an org admin. |
404 | `NOT_FOUND`: environment does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/environments/{id}/grants
Create an environment grant
Grants a user, group, department, or role access to an environment. Requires organization admin role.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Environment identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
scope | string (enum) usergroupdepartmentrole | yes | The principal scope being granted. |
target_id | string | yes | Identifier of the principal within the given scope. |
capability | string (enum) membermanage | no | Access level granted. Defaults to `member` when omitted. |
Responses
| Status | Description |
201 | Grant created. |
400 | `INVALID_ID_FORMAT` (bad path param), `INVALID_JSON` (malformed body), or `VALIDATION_ERROR` (invalid scope/capability). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `INSUFFICIENT_PERMISSIONS`: caller is not an org admin. |
409 | `CONFLICT`: a grant for this principal already exists on this environment. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
env_id | string<uuid> | |
scope | string (enum) usergroupdepartmentrole | |
target_id | string | Principal identifier within the scope. |
capability | string (enum) membermanage | |
revoked_at | string<date-time> | |
created_at | string<date-time> | |
DELETE /v1/environments/{id}/grants/{grantId}
Revoke an environment grant
Revokes an environment access grant. Idempotent: revoking an already-revoked grant is a no-op. The environment `id` is validated for format; authorization and ownership are resolved from the grant id within the caller's organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Environment identifier (UUIDv7). |
grantId | path | string<uuid> | yes | Grant identifier (UUIDv7). |
Responses
| Status | Description |
200 | Grant revoked (or was already revoked). |
400 | `INVALID_ID_FORMAT`: one or both path parameters is not a valid UUID. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller is not an org admin. |
404 | `NOT_FOUND`: grant does not exist within the caller's organization. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/industry-templates
List industry templates
Lists the industry templates in the order of the industries on the home page. Each template carries ready-made entity types and default views for one industry. `deployed` tells whether the organization has deployed the template and `update_available` whether a newer version of a deployed type exists. Requires `entity_type.view`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
q | query | string | no | Text matched against the template name (at most 200 characters). |
Responses
| Status | Description |
200 | The template catalog. |
400 | `VALIDATION_ERROR`: `q` is longer than 200 characters. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: industry templates are not available to the organization. |
200 response body: data fields
| Field | Type | Description |
catalog_version | integer | |
templates | array of object | |
GET /v1/industry-templates/{slug}
Get an industry template
Returns one industry template with each entity type, its fields and default views, and which of its types the organization has deployed. Requires `entity_type.view`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
slug | path | string | yes | Template slug (the industry), for example `real-estate`. |
Responses
| Status | Description |
200 | The template. |
400 | `VALIDATION_ERROR`: the slug is malformed. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: no such industry template. |
200 response body: data fields
| Field | Type | Description |
template | object | |
entity_types | array of object | |
deployment | object | |
POST /v1/industry-templates/{slug}/deploy
Deploy an industry template
Adds every entity type of the template that the organization does not have yet, with its default views (in the given project, or for the whole organization). Deployed types stay linked to the template: the organization can hide template fields, show them again and add its own fields, and a later template update adds new fields without touching those choices. Calling it again adds only what is missing (200 with `created: false` when nothing was missing). Organization owners and admins with `entity_type.create`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
slug | path | string | yes | Template slug (the industry), for example `real-estate`. |
Request Body
| Field | Type | Required | Description |
project_id | string<uuid> | no | Project (one you belong to) for the default views and the new types. |
org_id | string<uuid> | no | Optional; must equal the organization of the session. |
Responses
| Status | Description |
200 | Nothing was missing; the deployed types are returned. |
201 | Entity types were added. |
400 | `VALIDATION_ERROR`: the slug or the body is malformed. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
402 | `ENTITY_TYPE_CAP_EXCEEDED` or `DB_STORAGE_CAP_EXCEEDED`: the plan allows no more entity types or storage. Nothing is added. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: no such template, or the project is not one of yours. |
413 | `PAYLOAD_TOO_LARGE`: the request body is too large. |
200 response body: data fields
| Field | Type | Description |
template_slug | string | |
template_version | integer | |
created | boolean | |
types | array of object | |
views_created | integer | |
201 response body: data fields
| Field | Type | Description |
template_slug | string | |
template_version | integer | |
created | boolean | |
types | array of object | |
views_created | integer | |
POST /v1/industry-templates/{slug}/types/{templateTypeId}/copy
Copy a template entity type
Copies one entity type of the template into the organization as an independent entity type that the organization manages entirely; template updates never change it. A reference field whose target type the organization has deployed points at that type; any other reference is cleared and named in `unresolved_refs`. Organization owners and admins with `entity_type.create`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
slug | path | string | yes | Template slug (the industry), for example `real-estate`. |
templateTypeId | path | string<uuid> | yes | Identifier of the template entity type to copy. |
Request Body
| Field | Type | Required | Description |
display_name | string | no | Name of the new entity type; defaults to the template type name. |
org_id | string<uuid> | no | Optional; must equal the organization of the session. |
Responses
| Status | Description |
201 | The new entity type. |
400 | `VALIDATION_ERROR`: the slug, the type id or the name is malformed. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
402 | `ENTITY_TYPE_CAP_EXCEEDED`: the plan allows no more entity types. |
403 | `FORBIDDEN`: the caller lacks the required role or permission in the organization. |
404 | `NOT_FOUND`: no such template or template entity type. |
413 | `PAYLOAD_TOO_LARGE`: the request body is too large. |
201 response body: data fields
| Field | Type | Description |
entity_type | object | The new entity type, with no link to the template. |
unresolved_refs | array of string | |
GET /v1/org/{orgId}/templates
List project templates (org-scoped)
Org-scoped alias for `GET /v1/templates`. The `orgId` path parameter must match the authenticated session's organization; a mismatch returns `TENANT_ACCESS_DENIED`. Identical query parameters and response shape.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
is_published | query | boolean | no | |
page | query | integer | no | |
page_size | query | integer | no | |
search | query | string | no | |
Responses
| Status | Description |
200 | List of templates. |
400 | `INVALID_ID_FORMAT` (bad orgId) or `INVALID_PARAMETER` (bad query). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`, `TENANT_ACCESS_DENIED` (orgId mismatch). |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
templates | array of object | |
POST /v1/org/{orgId}/templates
Create a project template (org-scoped)
Org-scoped alias for `POST /v1/templates`. The `orgId` path parameter must match the authenticated session's organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | yes | Display name for the template. |
description | string | no | Optional human-readable description. Content is screened by the platform content-safety gate; prohibited content returns `CONTENT_POLICY_VIOLATION`. |
config | object | no | Arbitrary JSON configuration (project structure, entity types, etc.). Defaults to `{}`. |
source_project_id | string<uuid> | no | Optional project to seed the template from. |
Responses
| Status | Description |
201 | Template created. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, `VALIDATION_ERROR`, or `CONTENT_POLICY_VIOLATION`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
GET /v1/org/{orgId}/templates/{id}
Get a project template (org-scoped)
Org-scoped alias for `GET /v1/templates/{id}`. The `orgId` must match the session organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Responses
| Status | Description |
200 | The template record. |
400 | `INVALID_ID_FORMAT` or `TENANT_ACCESS_DENIED`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
PUT /v1/org/{orgId}/templates/{id}
Update a project template (org-scoped)
Org-scoped alias for `PUT /v1/templates/{id}`. The `orgId` must match the session organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | no | |
description | string | no | Set to `null` to clear. Content is screened by the platform content-safety gate. |
config | object | no | Replaces the template configuration. |
changelog | string | no | Optional human-readable change note for this version. |
Responses
| Status | Description |
200 | The updated template. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, `VALIDATION_ERROR`, or `CONTENT_POLICY_VIOLATION`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
DELETE /v1/org/{orgId}/templates/{id}
Delete a project template (org-scoped)
Org-scoped alias for `DELETE /v1/templates/{id}`. The `orgId` must match the session organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Responses
| Status | Description |
200 | Template deleted. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/org/{orgId}/templates/{templateId}/versions
List template versions (org-scoped)
Org-scoped alias for `GET /v1/templates/{templateId}/versions`. The `orgId` must match the session organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
templateId | path | string<uuid> | yes | Template identifier (UUIDv7). |
page | query | integer | no | |
page_size | query | integer | no | |
Responses
| Status | Description |
200 | Paginated version history. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
versions | array of object | |
meta | object | Pagination metadata. Endpoints use either page/pageSize or limit/offset style; fields present depend on the endpoint. |
GET /v1/projects/{projectId}/docs/{documentId}/git-sync
Read GitHub sync status for a document
Returns the document's binding in the selected project. An accessible document with no sync binding returns bound=false.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
Responses
| Status | Description |
200 | The current binding state or the unbound state for the document. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/docs/{documentId}/git-sync
Enable GitHub sync for a document
Connects a Backbuild Document to a linked GitHub repository. Requires a document classification that allows external sync and permission to manage the document.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
Request Body
| Field | Type | Required | Description |
repo_link_id | string<uuid> | yes | |
rel_path | string | no | Optional .tex path relative to the repository. |
outbound_mode | string (enum) author_commitcontinuous | no | |
outbound_window_seconds | integer | no | Delay used to combine automatic pushes for this binding. |
inbound_mode | string (enum) user_pullauto_apply | no | |
Responses
| Status | Description |
201 | The binding was created. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
413 | The request body exceeded 16 KiB. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
org_id | string<uuid> | |
document_id | string<uuid> | |
project_id | string<uuid> | |
repo_link_id | string<uuid> | |
rel_path | string | |
sidecar_rel_path | string | |
outbound_mode | string (enum) author_commitcontinuous | |
outbound_window_seconds | integer | |
inbound_mode | string (enum) user_pullauto_apply | |
sync_state | string | |
created_at | string<date-time> | |
DELETE /v1/projects/{projectId}/docs/{documentId}/git-sync/{bindingId}
Disable GitHub sync for a document
Removes the sync binding. The tracked file stays in the GitHub repository.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
bindingId | path | string<uuid> | yes | The GitHub sync binding identifier returned by the document's sync status. |
Responses
| Status | Description |
200 | The binding was removed. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
binding_id | string<uuid> | |
document_id | string<uuid> | |
POST /v1/projects/{projectId}/docs/{documentId}/git-sync/{bindingId}/pull
Queue a document pull from GitHub
Queues a pull from the repository branch and path set in the document's GitHub binding. Requires write access to the document. If the binding already has a queued or running sync, the receipt identifies that job and its direction.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
bindingId | path | string<uuid> | yes | The GitHub sync binding identifier returned by the document's sync status. |
Request Body
JSON object.
Responses
| Status | Description |
202 | The pull or existing sync job was accepted. Read the document's GitHub sync status for the outcome. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
413 | The request body exceeded 16 KiB. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
202 response body: data fields
| Field | Type | Description |
binding_id | string<uuid> | The document's GitHub sync binding. |
job_id | string<uuid> | The queued sync job. |
sync_state | string (enum) pushingpulling | The direction of the job identified by the receipt. |
coalesced | boolean | Whether an already queued or running job was returned. |
POST /v1/projects/{projectId}/docs/{documentId}/git-sync/{bindingId}/push
Queue a document push to GitHub
Queues a commit for the document's GitHub binding. Requires write access to the document and a classification that allows external sync. If the binding already has a queued or running sync, the receipt identifies that job and its direction.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
bindingId | path | string<uuid> | yes | The GitHub sync binding identifier returned by the document's sync status. |
Request Body
| Field | Type | Required | Description |
commit_message | string | no | Optional single-line commit message. A missing or blank message uses the default. |
Responses
| Status | Description |
202 | The push or existing sync job was accepted. Read the document's GitHub sync status for the outcome. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
413 | The request body exceeded 16 KiB. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
202 response body: data fields
| Field | Type | Description |
binding_id | string<uuid> | The document's GitHub sync binding. |
job_id | string<uuid> | The queued sync job. |
sync_state | string (enum) pushingpulling | The direction of the job identified by the receipt. |
coalesced | boolean | Whether an already queued or running job was returned. |
GET /v1/projects/{projectId}/docs/{documentId}/git-sync/classification
Read classification options for a document
Lists the active classifications the caller can choose for the document.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
Responses
| Status | Description |
200 | The current classification and permitted choices. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
current_label | string | The current classification key. |
current_display_name | string | The organization’s display name for the current classification. |
options | array of object | Permitted active classifications. |
POST /v1/projects/{projectId}/docs/{documentId}/git-sync/classification
Change a document’s classification
Applies an authorized classification change. The current label must match the caller’s expected label. Lowering a classification requires a justification and declassification authority.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
documentId | path | string<uuid> | yes | Document identifier. |
Request Body
| Field | Type | Required | Description |
label_key | string | yes | The requested classification. |
expected_label | string | yes | The current label seen when the change was prepared. |
justification | string | no | Required when lowering the classification. |
Responses
| Status | Description |
200 | The previous and new classifications and the count of automatically revoked grants. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
413 | The request body exceeded 16 KiB. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
resource_id | string<uuid> | The document identifier. |
before_label | string | The previous classification key. |
after_label | string | The saved classification key. |
direction | string (enum) upgradedowngradesame | How the sensitivity rank changed. |
revoked_count | integer | The number of access grants automatically revoked. |
GET /v1/projects/{projectId}/entities
List entities in a project
Returns entities within a project with offset pagination. Requires `project.view` permission. Supports filtering by entity type, parent, and status.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
entity_type_id | query | string<uuid> | no | Filter to a specific entity type (UUIDv7). |
parent_id | query | string<uuid> | no | Filter to direct children of a parent entity. |
status | query | string | no | Filter by entity status string. |
limit | query | integer | no | Maximum number of records to return. Default and ceiling are endpoint-specific (commonly default 25 to 50, max 100). |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | Paginated entity list. |
400 | `INVALID_ID_FORMAT` (bad projectId) or `INVALID_PARAMETER` (bad query). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/entities
Create an entity
Creates a new entity of the specified type within a project. Requires `project.update` permission. Returns the platform-assigned entity identifier.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
entity_type_id | string<uuid> | yes | Entity type to instantiate. |
name | string | yes | Display name for the entity. |
parent_id | string<uuid> | no | Optional parent entity for tree nesting. |
data | object | no | Field bag (alias: `metadata`). Only one need be supplied; they are merged. |
metadata | object | no | Alias for `data`. Symmetric with the GET response field name. |
owner_scope | string (enum) userprojectgroupdepartmentorg | no | |
owner_id | string<uuid> | no | |
Responses
| Status | Description |
201 | Entity created. Returns the entity identifier. |
400 | |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | `NOT_FOUND`: the referenced `entity_type_id` or `parent_id` does not exist. |
409 | `CONFLICT`: a unique constraint was violated. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
GET /v1/projects/{projectId}/entities/search
Search entities in a project
Full-text search over entities within a project. Requires `project.view` permission. The `query` parameter is required.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
query | query | string | yes | Search terms (1 to 256 chars). |
entity_type_id | query | string<uuid> | no | Restrict search to a specific entity type. |
limit | query | integer | no | Maximum number of records to return. Default and ceiling are endpoint-specific (commonly default 25 to 50, max 100). |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | Search results. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/projects/{projectId}/entities/tree
Get entity tree
Returns the entity hierarchy for a project as a nested tree structure. Requires `project.view` permission. Optionally starts from a specific root entity and limits depth.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
root_entity_id | query | string<uuid> | no | Start the tree from this entity (UUIDv7). Defaults to the project root. |
max_depth | query | integer | no | Maximum tree depth to traverse (1 to 20, default 20). |
Responses
| Status | Description |
200 | Nested entity tree. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller is not a member of the project. |
404 | `NOT_FOUND`: project does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/projects/{projectId}/git-sync
List GitHub document sync bindings
Lists the GitHub sync bindings in a project, including their current status and any open conflict pull request. Requires project membership.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
Responses
| Status | Description |
200 | The project's bindings and linked GitHub repositories. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
repositories | array of object | |
bindings | array of any | Bindings in creation order. |
GET /v1/projects/{projectId}/pipeline
Get project pipeline configuration
Returns the CI/CD pipeline configuration for a project. Requires `project.view`. The `project_deployments` and `containers` system feature flags must be enabled; if not, all pipeline endpoints return `FORBIDDEN`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
Responses
| Status | Description |
200 | Pipeline configuration. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks project view access, or required feature flags are disabled. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
project_id | string<uuid> | |
org_repo_id | string<uuid> | Connected repository identifier. |
deploy_connection_id | string<uuid> | Optional deployment connection override. |
default_backend | string | |
allow_free_form | boolean | |
is_active | boolean | |
environments | array of object | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
PUT /v1/projects/{projectId}/pipeline
Create or update project pipeline configuration
Creates or updates the CI/CD pipeline root configuration for a project. Requires `project.update`. The `org_repo_id` linking the project to a connected repository is required. Idempotent: repeated calls update in place.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
org_repo_id | string<uuid> | yes | Connected repository identifier. Required. |
deploy_connection_id | string<uuid> | no | |
default_backend | string | no | |
allow_free_form | boolean | no | |
is_active | boolean | no | |
Responses
| Status | Description |
200 | Pipeline configuration upserted. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (missing `org_repo_id`, field bounds). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
project_id | string<uuid> | |
org_repo_id | string<uuid> | Connected repository identifier. |
deploy_connection_id | string<uuid> | Optional deployment connection override. |
default_backend | string | |
allow_free_form | boolean | |
is_active | boolean | |
environments | array of object | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
PUT /v1/projects/{projectId}/pipeline/environments
Create or update a pipeline environment
Creates or updates a single pipeline environment definition for a project. Requires `project.update`. If `id` is present in the body the matching environment row is updated; otherwise a new row is created. Call once per environment to build the full set.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
id | string<uuid> | no | If provided, identifies an existing environment to update. |
name | string | yes | |
env_id | string<uuid> | yes | |
rank | integer | yes | |
branch | string | yes | |
working_dir | string | no | |
deploy_commands | array of array | no | |
container_size | string | no | |
backend | string | no | |
egress_allowlist | array of string | no | |
is_protected | boolean | no | |
auto_deploy_on_push | boolean | no | |
Responses
| Status | Description |
200 | Pipeline environments upserted. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (field bounds, duplicate rank, invalid commit SHA pattern). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
PUT /v1/projects/{projectId}/pipeline/environments/{envId}/approval-policy
Set pipeline environment approval policy
Creates or replaces the approval gate policy for a protected pipeline environment. Requires `project.update`. Protected environments require N-of-M approval before a promotion can start.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
envId | path | string<uuid> | yes | Pipeline environment identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
rules | any | no | Approval rule set. |
allow_self_approval | boolean | no | When false, the user who triggered the run cannot approve it. Defaults to false. |
Responses
| Status | Description |
200 | Approval policy set. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (invalid rule grammar). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/pipeline/environments/{envId}/deploy
Trigger a deploy for a pipeline environment
Enqueues a deploy run for a specific pipeline environment. Requires `project.update`. An optional `commit_sha` (40 hex chars case-insensitive) pins the deploy to a specific commit; omitting it deploys the branch HEAD.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
envId | path | string<uuid> | yes | Pipeline environment identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
commit_sha | string | no | Optional full 40-hex-char commit SHA to deploy. Omit to deploy branch HEAD. |
Responses
| Status | Description |
200 | Deploy run enqueued. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (malformed commit SHA). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
project_id | string<uuid> | |
pipeline_env_id | string<uuid> | |
triggered_by | string<uuid> | |
run_type | string (enum) deploypromote | Whether this is a direct deploy or a promotion. |
status | string (enum) queuedrunningsucceededfailedcancelledawaiting_approval | |
commit_sha | string | The commit SHA being deployed. |
created_at | string<date-time> | |
started_at | string<date-time> | |
completed_at | string<date-time> | |
PUT /v1/projects/{projectId}/pipeline/environments/{envId}/secrets/{itemId}
Set a pipeline environment secret
Creates or updates a secret override for a pipeline environment. Requires `project.update`. The `content_fp` is a content fingerprint of the secret value, not the value itself.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
envId | path | string<uuid> | yes | Pipeline environment identifier (UUIDv7). |
itemId | path | string<uuid> | yes | Secret item identifier (UUIDv7). Must match `item_id` in the body when provided. |
Request Body
| Field | Type | Required | Description |
item_id | string<uuid> | no | Optional: if supplied, must match the path `itemId`. |
content_fp | string | yes | Content fingerprint of the secret value. |
Responses
| Status | Description |
200 | Secret set. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (content_fp missing or too long). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/pipeline/environments/{envId}/vault
Bind a vault to a pipeline environment
Attaches a vault to a pipeline environment, making its secrets available during deploys. Requires `project.update`. The `members_fp` is a content fingerprint of the vault members list at bind time, used to detect drift.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
envId | path | string<uuid> | yes | Pipeline environment identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
vault_id | string<uuid> | yes | The vault to bind. |
members_fp | string | yes | Content fingerprint of the vault members list at bind time. |
Responses
| Status | Description |
200 | Vault bound to pipeline environment. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
DELETE /v1/projects/{projectId}/pipeline/environments/{envId}/vault
Unbind a vault from a pipeline environment
Removes the vault binding from a pipeline environment. Requires `project.update`. The request body must be empty.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
envId | path | string<uuid> | yes | Pipeline environment identifier (UUIDv7). |
Responses
| Status | Description |
200 | Vault binding removed. |
400 | `INVALID_ID_FORMAT` or `VALIDATION_ERROR` (non-empty body). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/projects/{projectId}/pipeline/runs
List pipeline runs
Returns pipeline deploy runs for a project with cursor-based pagination. Optionally filtered by `env_id`. Requires `project.view`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
env_id | query | string<uuid> | no | Filter to runs for a specific pipeline environment. |
cursor | query | string | no | Opaque cursor from the previous page's response for pagination. |
limit | query | integer | no | Maximum runs to return per page. |
Responses
| Status | Description |
200 | Paginated list of pipeline runs. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/pipeline/runs/{runId}/approve
Approve or reject a pipeline run
Submits an approval or rejection decision on a pipeline run waiting at a protected environment gate. Requires `project.update`. Self-approval is blocked if `allow_self_approval=false` on the environment's approval policy.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
runId | path | string<uuid> | yes | Pipeline run identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
action | string (enum) approvereject | yes | Approval decision. |
Responses
| Status | Description |
200 | Approval decision recorded. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (unknown action, run not awaiting approval). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN`: caller lacks permission, or `allow_self_approval=false` and the caller is the run initiator. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | `CONFLICT`: the run has already been approved/rejected by this user or has moved to a terminal state. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/pipeline/runs/{runId}/cancel
Cancel an active pipeline run
Requests cancellation of an in-progress pipeline run. Requires `project.update`. The run must be in a non-terminal state.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
runId | path | string<uuid> | yes | Pipeline run identifier (UUIDv7). |
Responses
| Status | Description |
200 | Cancellation requested. |
400 | `INVALID_ID_FORMAT` or `VALIDATION_ERROR` (run is already in a terminal state). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
409 | `CONFLICT`: the run has already transitioned to a terminal state. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/projects/{projectId}/pipeline/runs/{runId}/events
Get pipeline run events
Returns the event stream for a pipeline run (log lines, status changes, step boundaries). Supports tail-following via `after_seq`. Requires `project.view`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
runId | path | string<uuid> | yes | Pipeline run identifier (UUIDv7). |
after_seq | query | integer | no | Sequence number of the last event seen; returns only events after this sequence. |
limit | query | integer | no | Maximum events to return. |
Responses
| Status | Description |
200 | List of pipeline run events. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/projects/{projectId}/pipeline/runs/{runId}/retry
Retry a failed pipeline run
Retries a failed or cancelled pipeline run, creating a new run from the same configuration. Requires `project.update`. The run must be in a terminal state. Request body must be empty.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
projectId | path | string<uuid> | yes | Project identifier (UUIDv7). |
runId | path | string<uuid> | yes | Pipeline run identifier (UUIDv7). |
Responses
| Status | Description |
200 | New retry run enqueued. |
400 | `INVALID_ID_FORMAT` or `VALIDATION_ERROR` (run is not in a terminal state). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
project_id | string<uuid> | |
pipeline_env_id | string<uuid> | |
triggered_by | string<uuid> | |
run_type | string (enum) deploypromote | Whether this is a direct deploy or a promotion. |
status | string (enum) queuedrunningsucceededfailedcancelledawaiting_approval | |
commit_sha | string | The commit SHA being deployed. |
created_at | string<date-time> | |
started_at | string<date-time> | |
completed_at | string<date-time> | |
GET /v1/relationship-types
List relationship types
Returns all relationship types visible to the caller's organization. Requires `project.view` permission.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
limit | query | integer | no | Maximum number of records to return. Default and ceiling are endpoint-specific (commonly default 25 to 50, max 100). |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | List of relationship types. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/relationship-types
Create a relationship type
Defines a new directed relationship type with forward and reverse labels. Requires `relationship_type.create` permission. Duplicate `name` within the organization returns `CONFLICT`.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
name | string | yes | |
forward_label | string | yes | |
reverse_label | string | yes | |
description | string | no | |
icon | string | no | |
color | string | no | Hex color (e.g. `#FF5733` or `#F53`). |
Responses
| Status | Description |
201 | Relationship type created. |
400 | `INVALID_JSON` or `VALIDATION_ERROR` (field constraints). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | `CONFLICT`: a relationship type with that name already exists in the organization. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | Relationship type identifier (UUIDv7). |
org_id | string<uuid> | |
name | string | Internal unique name within the organization. |
forward_label | string | Human-readable label for the source→target direction (e.g. 'blocks'). |
reverse_label | string | Human-readable label for the target→source direction (e.g. 'blocked by'). |
description | string | |
icon | string | |
color | string | Optional hex color for display (e.g. `#FF5733` or `#F53`). |
created_at | string<date-time> | |
GET /v1/relationships
List entity relationships
Returns relationships for a specific entity. The `entity_id` query parameter is required. Optionally filtered by relationship type UUID and direction. Requires `project.view` on the entity.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
entity_id | query | string<uuid> | yes | The entity whose relationships to list (UUIDv7). |
type | query | string<uuid> | no | Filter to a specific relationship type (UUIDv7). |
direction | query | string (enum) | no | Filter by direction from the reference entity. `outgoing` returns edges where the entity is the source; `incoming` returns edges where it is the target. |
limit | query | integer | no | Maximum number of records to return. Default and ceiling are endpoint-specific (commonly default 25 to 50, max 100). |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | List of relationships. |
400 | `INVALID_ID_FORMAT` (entity_id not a UUID) or `INVALID_PARAMETER` (unknown direction). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/relationships
Create a relationship between entities
Creates a directional relationship between two entities. Source and target must differ (`VALIDATION_ERROR` if equal). Requires `project.update` permission. Duplicate (source, target, type) returns `CONFLICT`.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
source_entity_id | string<uuid> | yes | Source entity. Must differ from `target_entity_id`. |
target_entity_id | string<uuid> | yes | Target entity. Must differ from `source_entity_id`. |
relationship_type_id | string<uuid> | yes | Relationship type identifier. |
metadata | object | no | Optional JSONB metadata to attach to the edge. |
Responses
| Status | Description |
201 | Relationship created. |
400 | `INVALID_JSON`, `VALIDATION_ERROR` (same source/target, missing fields), or `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | `NOT_FOUND`: source entity, target entity, or relationship type not found. |
409 | `CONFLICT`: a relationship of this type between these two entities already exists. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | Relationship identifier (UUIDv7). |
source_entity_id | string<uuid> | Source (origin) entity. |
target_entity_id | string<uuid> | Target (destination) entity. |
relationship_type_id | string<uuid> | The type that defines this edge's semantics. |
metadata | object | Arbitrary JSONB metadata. |
created_at | string<date-time> | |
updated_at | string<date-time> | |
DELETE /v1/relationships/{relationshipId}
Delete a relationship
Removes a relationship edge. Requires `project.delete` permission on the source entity.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
relationshipId | path | string<uuid> | yes | Relationship identifier (UUIDv7). |
Responses
| Status | Description |
200 | Relationship deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/templates
List project templates
Returns project templates visible to the authenticated caller within their organization. Supports filtering by publication status and free-text search.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
is_published | query | boolean | no | Filter by publication state. Omit to return all visible templates. |
page | query | integer | no | 1-based page number (default 1, max 100000). |
page_size | query | integer | no | Records per page (default 100, max 100). |
search | query | string | no | Free-text search over template names/descriptions (max 500 chars). |
Responses
| Status | Description |
200 | List of templates. |
400 | `INVALID_PARAMETER`: an invalid query parameter value was supplied. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`: caller lacks template view access or the `orgId` path param does not match the session org. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
templates | array of object | |
POST /v1/templates
Create a project template
Creates a new project template in the caller's organization. The `description` field is screened by the platform content-safety gate; prohibited content returns `CONTENT_POLICY_VIOLATION`.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
name | string | yes | Display name for the template. |
description | string | no | Optional human-readable description. Content is screened by the platform content-safety gate; prohibited content returns `CONTENT_POLICY_VIOLATION`. |
config | object | no | Arbitrary JSON configuration (project structure, entity types, etc.). Defaults to `{}`. |
source_project_id | string<uuid> | no | Optional project to seed the template from. |
Responses
| Status | Description |
201 | Template created. |
400 | `INVALID_JSON` (malformed body), `VALIDATION_ERROR` (field constraint), or `CONTENT_POLICY_VIOLATION` (description content rejected). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
GET /v1/templates/{id}
Get a project template
Returns a single project template by identifier. Templates not visible to the caller are reported as `NOT_FOUND`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Responses
| Status | Description |
200 | The template record. |
400 | `INVALID_ID_FORMAT`: the `id` path parameter is not a valid UUID. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
PUT /v1/templates/{id}
Update a project template
Updates a project template's name, description, config, or changelog. At least one field must be provided. The `description` field is screened by the content-safety gate.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | no | |
description | string | no | Set to `null` to clear. Content is screened by the platform content-safety gate. |
config | object | no | Replaces the template configuration. |
changelog | string | no | Optional human-readable change note for this version. |
Responses
| Status | Description |
200 | The updated template record. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, `VALIDATION_ERROR` (no fields provided or field constraint), or `CONTENT_POLICY_VIOLATION`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
template | object | A project template that can be used as a starting point when creating new projects. |
DELETE /v1/templates/{id}
Delete a project template
Deletes a project template from the caller's organization.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
id | path | string<uuid> | yes | Template identifier (UUIDv7). |
Responses
| Status | Description |
200 | Template deleted. |
400 | `INVALID_ID_FORMAT`: the `id` path parameter is not a valid UUID. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/templates/{templateId}/versions
List template versions
Returns the version history of a project template with page-based pagination. The caller must have visibility on the template.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
templateId | path | string<uuid> | yes | Template identifier (UUIDv7). |
page | query | integer | no | 1-based page number (default 1, max 100000). |
page_size | query | integer | no | Records per page (default 25, max 100). |
Responses
| Status | Description |
200 | Paginated version history. |
400 | `INVALID_ID_FORMAT` or `INVALID_PARAMETER` (unknown query param: strict schema). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | `FORBIDDEN` or `TENANT_ACCESS_DENIED`. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
versions | array of object | |
meta | object | Pagination metadata. Endpoints use either page/pageSize or limit/offset style; fields present depend on the endpoint. |
GET /v1/views
List views
Returns saved views accessible to the caller within an organization. Filterable by `project_id`, `view_type`, and `is_shared`. Paginated.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
project_id | query | string<uuid> | no | Filter to views belonging to a specific project. |
view_type | query | string (enum) | no | Filter by view rendering type. |
is_shared | query | boolean | no | When `true`, return only shared views; `false` returns private views. |
limit | query | integer | no | |
offset | query | integer | no | Number of records to skip for offset pagination. |
Responses
| Status | Description |
200 | Paginated view list. |
400 | `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
500 | 500 Internal Server Error: an unexpected server-side error. |
POST /v1/views
Create a view
Creates a new saved view. Only `name` is required; `view_type` defaults to `list`. If `project_id` is supplied the caller must have `project.update` permission on that project.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
name | string | yes | |
description | string | no | |
view_type | string (enum) boardlisttablecalendartimelinegantt | no | |
project_id | string<uuid> | no | |
config | object | no | |
filters | object | no | |
columns | array of object | no | |
sort_config | object | no | |
group_by | string | no | |
is_default | boolean | no | |
is_shared | boolean | no | |
metadata | object | no | |
Responses
| Status | Description |
201 | View created. |
400 | `INVALID_JSON` or `VALIDATION_ERROR` (name length, unknown view_type, missing project_id). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
500 | 500 Internal Server Error: an unexpected server-side error. |
201 response body: data fields
| Field | Type | Description |
id | string<uuid> | View identifier (UUIDv7). |
org_id | string<uuid> | |
project_id | string<uuid> | |
created_by | string<uuid> | |
name | string | |
description | string | |
view_type | string (enum) boardlisttablecalendartimelinegantt | |
config | object | View-type-specific rendering configuration. |
filters | object | Filter expression applied before rendering. |
columns | array of object | Column or field order/visibility config. |
sort_config | object | Sort specification. |
group_by | string | Field key to group rows by. |
is_default | boolean | |
is_shared | boolean | |
metadata | object | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
GET /v1/views/{viewId}
Get a view
Returns a saved view by identifier. Requires `project.view` on the owning project.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
viewId | path | string<uuid> | yes | View identifier (UUIDv7). |
Responses
| Status | Description |
200 | The view record. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | View identifier (UUIDv7). |
org_id | string<uuid> | |
project_id | string<uuid> | |
created_by | string<uuid> | |
name | string | |
description | string | |
view_type | string (enum) boardlisttablecalendartimelinegantt | |
config | object | View-type-specific rendering configuration. |
filters | object | Filter expression applied before rendering. |
columns | array of object | Column or field order/visibility config. |
sort_config | object | Sort specification. |
group_by | string | Field key to group rows by. |
is_default | boolean | |
is_shared | boolean | |
metadata | object | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
PUT /v1/views/{viewId}
Update a view
Updates a saved view's configuration. Requires `project.update` on the owning project. At least one field must be provided.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
viewId | path | string<uuid> | yes | View identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
name | string | no | |
description | string | no | |
config | object | no | |
filters | object | no | |
columns | array of object | no | |
sort_config | object | no | |
group_by | string | no | |
is_default | boolean | no | |
is_shared | boolean | no | |
metadata | object | no | |
Responses
| Status | Description |
200 | Updated view record. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (no fields provided). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | View identifier (UUIDv7). |
org_id | string<uuid> | |
project_id | string<uuid> | |
created_by | string<uuid> | |
name | string | |
description | string | |
view_type | string (enum) boardlisttablecalendartimelinegantt | |
config | object | View-type-specific rendering configuration. |
filters | object | Filter expression applied before rendering. |
columns | array of object | Column or field order/visibility config. |
sort_config | object | Sort specification. |
group_by | string | Field key to group rows by. |
is_default | boolean | |
is_shared | boolean | |
metadata | object | |
created_at | string<date-time> | |
updated_at | string<date-time> | |
DELETE /v1/views/{viewId}
Delete a view
Soft-deletes a saved view. Requires `project.update` on the owning project.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
viewId | path | string<uuid> | yes | View identifier (UUIDv7). |
Responses
| Status | Description |
200 | View deleted. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/views/{viewId}/execute
Execute a view query (legacy GET alias)
Legacy GET alias for view execution. Prefer `POST /v1/views/{viewId}/execute`. Returns a combined view-config-plus-results object rather than a bare row array. The `limit` and `offset` query params are not forwarded; the response always uses default pagination (limit 50, offset 0). Clients should migrate to the POST form.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
viewId | path | string<uuid> | yes | View identifier (UUIDv7). |
Responses
| Status | Description |
200 | Combined view config and execution results. |
400 | `INVALID_ID_FORMAT`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
200 response body: data fields
| Field | Type | Description |
id | string<uuid> | |
name | string | |
config | object | |
view_type | string | |
columns | array of object | |
rows | array of object | |
total_count | integer | |
POST /v1/views/{viewId}/execute
Execute a view query
Runs the view's saved filter/sort/group configuration and returns the matching entity rows. Requires `project.view` on the owning project. This is the canonical Wave-4 execution endpoint.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
viewId | path | string<uuid> | yes | View identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
limit | integer | no | Page size for this execution (1 to 500). |
offset | integer | no | Zero-based row offset. |
Responses
| Status | Description |
200 | View execution results. |
400 | `INVALID_ID_FORMAT`, `INVALID_JSON`, or `VALIDATION_ERROR` (limit/offset out of range). |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/views/templates
List view templates
Returns system-provided and organization view templates, optionally filtered by `view_type`. This is a static path registered before `GET /v1/views/{viewId}` in the router to ensure correct routing.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
view_type | query | string (enum) | no | Filter templates to a specific view type. |
Responses
| Status | Description |
200 | List of view templates. |
400 | `INVALID_PARAMETER`. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
500 | 500 Internal Server Error: an unexpected server-side error. |