← Arcade 1.12.0

openapi/coordinator.yaml

Download

Arcade Coordinator API

Version 0.1.0OpenAPI 3.0.0

Public API surface of the Arcade Coordinator service.

Arcade Cloud base URL: https://cloud.arcade.dev— a self-hosted install serves the same paths from its own host.

Bearer: Enter your API key or API token in the format: Bearer <token>

Audit Logs

Query audit log events for organizations and projects.
GET/api/v1/orgs/{organization_id}/audit_logsList organization audit logs

Query audit logs for an organization, newest first, paginated by offset.

Optionally filter by action, source, resource type, resource ID, and time range. The reported total counts the entries the filters select, not the page.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

actionquerystring

Filter by audit action. Known values: AUDIT_ACTION_CREATED, AUDIT_ACTION_UPDATED, AUDIT_ACTION_DELETED, AUDIT_ACTION_DISABLED.

sourcequerystring

Filter by audit source. Known values: AUDIT_SOURCE_API, AUDIT_SOURCE_DASHBOARD, AUDIT_SOURCE_CLI, AUDIT_SOURCE_SDK, AUDIT_SOURCE_SYSTEM.

resource_typequerystring

Filter by resource type. Examples: gateway, secret, worker, api_key, project, etc.

resource_idquerystring

Filter by the resource's unique identifier.

start_timequerystring(date-time)

Inclusive lower bound for event timestamp (ISO 8601).

end_timequerystring(date-time)

Exclusive upper bound for event timestamp (ISO 8601).

offsetqueryinteger

How many matching entries to skip before this page.

Default: 0
limitqueryinteger

Number of results per page (1--100).

Default: 50

Responses

200OK
application/jsonAuditLogListEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*AuditLogListResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

429Rate limit exceeded (100 req / 60 s)
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/projects/{project_id}/audit_logsList project audit logs

Query audit logs for a specific project, newest first, paginated by offset.

Optionally filter by action, source, resource type, resource ID, and time range. The reported total counts the entries the filters select, not the page.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

actionquerystring

Filter by audit action. Known values: AUDIT_ACTION_CREATED, AUDIT_ACTION_UPDATED, AUDIT_ACTION_DELETED, AUDIT_ACTION_DISABLED.

sourcequerystring

Filter by audit source. Known values: AUDIT_SOURCE_API, AUDIT_SOURCE_DASHBOARD, AUDIT_SOURCE_CLI, AUDIT_SOURCE_SDK, AUDIT_SOURCE_SYSTEM.

resource_typequerystring

Filter by resource type. Examples: gateway, secret, worker, api_key, project, etc.

resource_idquerystring

Filter by the resource's unique identifier.

start_timequerystring(date-time)

Inclusive lower bound for event timestamp (ISO 8601).

end_timequerystring(date-time)

Exclusive upper bound for event timestamp (ISO 8601).

offsetqueryinteger

How many matching entries to skip before this page.

Default: 0
limitqueryinteger

Number of results per page (1--100).

Default: 50

Responses

200OK
application/jsonAuditLogListEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*AuditLogListResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the organization or project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

429Rate limit exceeded (100 req / 60 s)
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

Projects

Create and manage projects within an organization.
GET/api/v1/orgs/{organization_id}/projectsList all projects

Get all projects the caller has access to within an organization.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

Responses

200OK
application/jsonListProjectsResponse
FieldTypeDescription
items*array of ProjectResponse
count*integer

Total number of items.

total_countinteger

Total number of items.

400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

POST/api/v1/orgs/{organization_id}/projectsCreate a new project

Create a new project within an organization.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

Request body*

application/jsonCreateProjectInput
FieldTypeDescription
name*string

Project name.

descriptionstring | null

Project description.

image_urlstring(uri) | null

Project image URL.

colorstring | null

Project color (hex, 6 characters).

Responses

200Created
application/jsonProjectResponseEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*ProjectResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not an organization owner
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/projects/{project_id}Get project details

Get details for a specific project.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Responses

200OK
application/jsonProjectResponseEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*ProjectResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- project not found
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

PUT/api/v1/orgs/{organization_id}/projects/{project_id}Update project

Update project details (name, description, image, color).

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Request body*

application/jsonUpdateProjectInput
FieldTypeDescription
namestring | null

Project name.

descriptionstring | null

Project description.

image_urlstring(uri) | null

Project image URL.

colorstring | null

Project color (hex, 6 characters).

Responses

200Updated
application/jsonProjectResponseEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*ProjectResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- project not found
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

DELETE/api/v1/orgs/{organization_id}/projects/{project_id}Delete project

Delete a project from the organization.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Responses

200Deleted
application/jsonSuccessEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
dataobject | null

Payload representing the result of an operation. May be empty for delete/success responses.

400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not an organization owner
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- project not found
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/projects/{project_id}/membersList project members

List all members of a project.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Responses

200OK
FieldTypeDescription
items*array of ProjectMemberResponse
count*integer

Total number of members.

total_countinteger

Total number of items.

viewer*ProjectMembersViewerResponse
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

DELETE/api/v1/orgs/{organization_id}/projects/{project_id}/members/{member_account_id}Remove a member from a project

Remove a member from a project. Organization owners can remove members even if they are not currently members of the project.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

member_account_id*pathstring(uuid)

Account ID of the member to remove.

Responses

204No Content
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller cannot remove this member
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

User Sources

Create and manage project-bound OIDC user sources.
GET/api/v1/orgs/{organization_id}/projects/{project_id}/user_sourcesList user sources

List user sources visible in this project, newest first, paginated by offset. total_count is the full matching set before pagination.

client_secret is never returned.

Requires the user_sources_read project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

limitqueryinteger

Results per page.

Default: 100
offsetqueryinteger

Rows to skip before the page.

Default: 0

Responses

200OK
application/jsonUserSourceListEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSourceList
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_read` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- organization or project is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- `limit` or `offset` is out of range
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

POST/api/v1/orgs/{organization_id}/projects/{project_id}/user_sourcesCreate a user source

Create a project-bound user source. The new record always has binding_type: project. Its id is a us_-prefixed KSUID; pass that id to Engine gateway create/update as user_source_id when auth_type=user_source.

The Coordinator probes the issuer's OIDC discovery document and JWKS before persisting. A malformed, unreachable, or self-inconsistent issuer is rejected with 422. The stored issuer string is the caller's exact input (no trailing-slash normalization) so it can be exact-matched against the iss claim on upstream ID tokens.

scopes must include openid. Duplicates are collapsed on write while preserving first occurrence. client_secret is stored encrypted and is never returned.

Requires the user_sources_create project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Request body*

application/jsonUserSourceCreateRequest
FieldTypeDescription
name*string

Human-readable name.

descriptionstring

Freeform description. Visible to project members, never to end users.

Default: ""
protocolUserSourceProtocol
Default: "oidc"
issuer*string(uri)

OIDC issuer URL. Stored verbatim. Must be reachable and serve a self-consistent discovery document and JWKS at create time.

client_id*string

OIDC client ID.

client_secret*string

OIDC client secret (plaintext; stored encrypted). Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

Default: "sub"
scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid. Tokens must not contain whitespace. Duplicates are collapsed on write while preserving first occurrence.

Default: ["openid","profile","email"]
statusUserSourceStatus
Default: "active"

Responses

201Created
application/jsonUserSourceEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSource
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_create` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- organization or project is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the body failed validation, `scopes` omitted `openid`, or the issuer failed OIDC discovery / JWKS checks.
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id}Get a user source

Return one project-bound user source. client_secret is never returned.

Organization-bound records (binding_type: organization) return 422, not 404, with guidance to use the organization scope. Platform-internal (static) records return 404. Unknown ids return 404. A malformed id (missing or wrong us_ prefix, or not a KSUID) returns 422.

Requires the user_sources_read project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

user_source_id*pathstring

User source id. A us_-prefixed KSUID (for example us_0000GfkSkVjL1s3EM2wUfhjxv7B). The Engine validates the same prefix when the id is passed as user_source_id on a gateway.

Example: "us_0000GfkSkVjL1s3EM2wUfhjxv7B"

Responses

200OK
application/jsonUserSourceEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSource
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_read` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- user source is unknown, static-bound, or not visible
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- `user_source_id` is malformed, or the record is organization-bound (use the organization scope).
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

PUT/api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id}Replace a user source

Full replace of a project-bound user source. client_secret is required. The Coordinator re-validates the issuer's OIDC discovery document and JWKS. client_secret is never returned.

Organization-bound records return 422. Static records return 404.

Requires the user_sources_update project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

user_source_id*pathstring

User source id. A us_-prefixed KSUID (for example us_0000GfkSkVjL1s3EM2wUfhjxv7B). The Engine validates the same prefix when the id is passed as user_source_id on a gateway.

Example: "us_0000GfkSkVjL1s3EM2wUfhjxv7B"

Request body*

application/jsonUserSourceReplaceRequest
FieldTypeDescription
name*string

Human-readable name.

descriptionstring

Freeform description.

Default: ""
protocolUserSourceProtocol
Default: "oidc"
issuer*string(uri)

OIDC issuer URL. Stored verbatim. Re-validated on replace.

client_id*string

OIDC client ID.

client_secret*string

OIDC client secret (plaintext; stored encrypted). Required on replace. Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

Default: "sub"
scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid.

Default: ["openid","profile","email"]
statusUserSourceStatus
Default: "active"

Responses

200OK
application/jsonUserSourceEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSource
400Bad Request
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_update` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- user source is unknown, static-bound, or not visible
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the body failed validation, `client_secret` is missing, the issuer failed OIDC checks, `user_source_id` is malformed, or the record is organization-bound.
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

DELETE/api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id}Delete a user source

Permanently delete a project-bound user source. Returns 204 with no body on success.

Organization-bound records return 422. Static records return 404.

Requires the user_sources_delete project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

user_source_id*pathstring

User source id. A us_-prefixed KSUID (for example us_0000GfkSkVjL1s3EM2wUfhjxv7B). The Engine validates the same prefix when the id is passed as user_source_id on a gateway.

Example: "us_0000GfkSkVjL1s3EM2wUfhjxv7B"

Responses

204No Content -- the user source was deleted.
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_delete` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- user source is unknown, static-bound, or not visible
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- `user_source_id` is malformed, or the record is organization-bound.
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

PATCH/api/v1/orgs/{organization_id}/projects/{project_id}/user_sources/{user_source_id}Patch a user source

Partial update of a project-bound user source. Omitted fields keep their stored values.

client_secret: omit to keep the stored secret; send a new value to rotate; send explicit null to clear. issuer must not be null. description sent as null is stored as an empty string.

The Coordinator re-validates OIDC discovery and JWKS only when issuer or scopes actually change, so a transient IdP outage does not block a status flip. client_secret is never returned.

Organization-bound records return 422. Static records return 404.

Requires the user_sources_update project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

user_source_id*pathstring

User source id. A us_-prefixed KSUID (for example us_0000GfkSkVjL1s3EM2wUfhjxv7B). The Engine validates the same prefix when the id is passed as user_source_id on a gateway.

Example: "us_0000GfkSkVjL1s3EM2wUfhjxv7B"

Request body*

application/jsonUserSourcePatchRequest
FieldTypeDescription
namestring

Human-readable name. Omit to keep the stored value.

descriptionstring

Freeform description. Omit to keep the stored value. Explicit null is stored as an empty string.

protocolUserSourceProtocol
issuerstring(uri) | null

OIDC issuer URL. Omit to keep the stored value. Must not be null. Re-validated only when the string actually changes.

client_idstring

OIDC client ID. Omit to keep the stored value.

client_secretstring | null

OIDC client secret. Omit to keep the stored secret. Send a new value to rotate. Explicit null clears the secret. Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid when sent. Re-validated only when the set actually changes.

statusUserSourceStatus

Responses

200OK
application/jsonUserSourceEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSource
400Bad Request -- `issuer` was sent as `null`
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `user_sources_update` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- user source is unknown, static-bound, or not visible
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the body failed validation, the issuer failed OIDC checks, `user_source_id` is malformed, or the record is organization-bound.
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

RBAC

Role-based access control. Browse the roles catalog, read the caller's effective permissions, list org/project members, and assign, change, or revoke org-level and project-level roles. These routes are gated by the per-organization `operator-authz` feature flag. While the flag is OFF for an organization, every route below except `GET /capabilities` is absent and returns `404`.
POST/api/v1/orgs/{organization_id}/projects/{project_id}/membersAssign an org member to this project at a role

Directly assign an existing organization member to this project at a project-level role. Requires the members_update project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Request body*

application/jsonMemberAssignRequest
FieldTypeDescription
account_id*string(uuid)

Account ID of the org member to assign.

role*string

Role key to assign. Must be a role whose catalog level matches the endpoint (org-level key for org endpoints, project-level key for project endpoints), else the request is rejected with 422.

Responses

201Created -- the member was assigned to the project.
application/jsonMemberRowEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*MemberRow
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_update` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the org/project is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the role is not a project-level role, or `account_id` is malformed
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

PUT/api/v1/orgs/{organization_id}/projects/{project_id}/members/{account_id}Change a project member's role

Change the project-level role of an existing project member. Requires the members_update project permission. Re-assigning the role the member already holds is an idempotent success.

Note: organization admins inherit administration over every child project and hold no per-project role binding, so their project role cannot be changed through this endpoint.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

account_id*pathstring(uuid)

Account ID (UUID) of the member whose role is being changed or revoked.

Request body*

application/jsonMemberRoleUpdateRequest
FieldTypeDescription
role*string

New role key. Must match the endpoint's level (org or project), else the request is rejected with 422.

Responses

200OK -- the member's role was changed (or already matched).
application/jsonMemberRowEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*MemberRow
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_update` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the org/project/member is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the role is not a project-level role
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/projects/{project_id}/assignable-membersList org members assignable to this project

List organization members who are eligible to be assigned to this project. Requires the members_update project permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

project_id*pathstring(uuid)

Project ID (UUID).

Responses

200OK
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*AssignableAccountsResponse
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_update` on the project
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the org/project is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/capabilitiesGet the caller's org-level capabilities

Report the caller's effective org-level permissions plus the billing capability block. Mounted regardless of the operator-authz flag: when the flag is OFF the response carries authz.enabled = false with no permissions, so a client can detect the flag state without inferring it from a missing route.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

Responses

200OK
application/jsonOrgCapabilities
FieldTypeDescription
authz*OrgAuthzCapabilities
billing*BillingCapabilities
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- caller is not a member of the organization (flag-OFF)
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/authz/rolesList roles available in the organization

Return the roles catalog for the organization -- every role key with its display name, level, and the permission bundle it grants. Use a role key from this catalog as the role field when assigning or changing a role.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

Responses

200OK
application/jsonRolesResponseEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*RolesResponse
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF for this organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

GET/api/v1/orgs/{organization_id}/membersList organization members with their org-level role

The organization member directory: every account in the org with its org-level role (or none). Requires the members_read org permission. Results are limit/offset paginated; total_count reports the org-wide member count regardless of the page requested.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

limitqueryinteger

Results per page.

Default: 100
offsetqueryinteger

Rows to skip before the page.

Default: 0

Responses

200OK
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*OrgMembersResponse
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_read` on the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- `limit` or `offset` is out of range
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

POST/api/v1/orgs/{organization_id}/membersAssign an org-level role

Assign an org-level role (e.g. org_admin) to an organization member. Requires the members_update org permission.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

Request body*

application/jsonMemberAssignRequest
FieldTypeDescription
account_id*string(uuid)

Account ID of the org member to assign.

role*string

Role key to assign. Must be a role whose catalog level matches the endpoint (org-level key for org endpoints, project-level key for project endpoints), else the request is rejected with 422.

Responses

201Created -- the org-level role was assigned.
application/jsonOrgMemberRowEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*OrgMemberRow
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_update` on the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the caller is not a member of the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the role is not an org-level role, or `account_id` is malformed
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

PUT/api/v1/orgs/{organization_id}/members/{account_id}Change an org-level role

Change the org-level role of an organization member. Requires the members_update org permission. Re-assigning the role the member already holds is an idempotent success.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

account_id*pathstring(uuid)

Account ID (UUID) of the member whose role is being changed or revoked.

Request body*

application/jsonMemberRoleUpdateRequest
FieldTypeDescription
role*string

New role key. Must match the endpoint's level (org or project), else the request is rejected with 422.

Responses

200OK -- the member's org-level role was changed (or already matched).
application/jsonOrgMemberRowEnvelope
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*OrgMemberRow
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_update` on the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the org/member is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

422Unprocessable Entity -- the role is not an org-level role
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

DELETE/api/v1/orgs/{organization_id}/members/{account_id}Revoke an org-level role binding

Revoke the caller-specified account's org-level role binding. Requires the members_delete org permission. This removes the org-level role only and does not affect legacy organization membership.

Removal is fail-closed: if the policy store cannot be reached the binding is left intact and the request fails with 503 rather than reporting a removal that did not happen.

Authorization: Bearer

Parameters

NameInTypeDescription
organization_id*pathstring(uuid)

Organization ID (UUID).

account_id*pathstring(uuid)

Account ID (UUID) of the member whose role is being changed or revoked.

Responses

204No Content -- the org-level role binding was revoked.
401Unauthorized
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

403Forbidden -- caller lacks `members_delete` on the organization
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

404Not Found -- the `operator-authz` flag is OFF, or the org/member is not visible to the caller
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

503Service Unavailable -- the policy store (OpenFGA) could not be reached
application/jsonErrorEnvelope
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

Schemas

AssignableAccount object
FieldTypeDescription
account_id*string(uuid)

Account ID of the assignable member.

email*string(email)

Email address of the member.

namestring | null

Full name of the member.

AssignableAccountsResponse object
FieldTypeDescription
items*array of AssignableAccount
count*integer

Number of members in this response.

total_count*integer

Total number of assignable members.

AssignableAccountsResponseEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*AssignableAccountsResponse
AuditLogListEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*AuditLogListResponse
AuditLogListResponse object
FieldTypeDescription
items*array of AuditLogResponse
total_count*integer

Total entries matching the filters, across every page. Add the page's limit to its offset until that reaches this value to walk the set.

limit*integer

Page size the request asked for.

offset*integer

Offset the request asked for.

AuditLogResponse object
FieldTypeDescription
id*string(uuid)

Internal audit log record ID.

event_id*string(uuid)

Unique event ID assigned at emission time.

timestamp*string(date-time)

When the audited action occurred.

client_ipstring | null

IP address of the caller, if available.

action*string

Audit action (e.g. AUDIT_ACTION_CREATED).

source*string

Origin of the action (e.g. AUDIT_SOURCE_API).

display_name*string

Human-readable name of the caller.

customer_idstring(uuid) | null

Customer ID, if applicable.

organization_id*string(uuid)

Organization the event belongs to.

project_idstring(uuid) | null

Project the event belongs to, if scoped to a project.

principal_id*string

Account ID or API key ID of the caller.

user_idstring | null

User ID for user-account callers.

principal_type*string

Type of principal (e.g. ACCOUNT, API_KEY).

resource_typestring | null

Type of the affected resource (e.g. gateway, secret).

resource_idstring | null

Identifier of the affected resource.

resource_displaystring | null

Human-readable name of the affected resource.

dataobject | null

Structured event payload. Shape depends on the action:

  • created: {"action_type": "created", "data": {...}}
  • updated: {"action_type": "updated", "original": {...}, "updated": {...}}
  • deleted: {"action_type": "deleted", "data": {...}}

Sensitive fields (secrets, tokens) are masked.

created_time*string(date-time)

When the audit log record was persisted.

BillingCapabilities object
FieldTypeDescription
enabled*boolean

Whether billing capabilities are enabled for the caller.

ContainerRef object
FieldTypeDescription
type*RoleLevel
id*string

ID of the org or project the role is held in.

namestring | null

Display name of the container, if available.

CreateProjectInput object
FieldTypeDescription
name*string

Project name.

descriptionstring | null

Project description.

image_urlstring(uri) | null

Project image URL.

colorstring | null

Project color (hex, 6 characters).

ErrorEnvelope object
FieldTypeDescription
code*integer
Example: 400
msg*string
Example: "Bad Request"
dataobject

Optional error details.

ListProjectMembersResponse object
FieldTypeDescription
items*array of ProjectMemberResponse
count*integer

Total number of members.

total_countinteger

Total number of items.

viewer*ProjectMembersViewerResponse
ListProjectsResponse object
FieldTypeDescription
items*array of ProjectResponse
count*integer

Total number of items.

total_countinteger

Total number of items.

MemberActions object
FieldTypeDescription
can_remove*boolean

Whether the caller can remove this member.

cannot_remove_reasonstring | null

Reason why the member cannot be removed, if any.

can_change_role*boolean

Whether the caller can change this member's role.

MemberAssignRequest object
FieldTypeDescription
account_id*string(uuid)

Account ID of the org member to assign.

role*string

Role key to assign. Must be a role whose catalog level matches the endpoint (org-level key for org endpoints, project-level key for project endpoints), else the request is rejected with 422.

MemberProject object
FieldTypeDescription
project_id*string(uuid)

ID of the covered project.

name*string

Display name of the covered project.

MemberRoleUpdateRequest object
FieldTypeDescription
role*string

New role key. Must match the endpoint's level (org or project), else the request is rejected with 422.

MemberRow object
FieldTypeDescription
account_id*string(uuid)

Account ID of the member.

email*string(email)

Email address of the member.

full_namestring | null

Full name of the member.

preferred_namestring | null

Preferred name of the member.

role*RoleRef
actions*MemberActions
MemberRowEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*MemberRow
OrgAuthzCapabilities object
FieldTypeDescription
enabled*boolean

Whether operator RBAC is enabled for this organization.

permissions*array of string

Org-level permission tokens the caller holds.

OrgCapabilities object
FieldTypeDescription
authz*OrgAuthzCapabilities
billing*BillingCapabilities
OrgMemberRow object
FieldTypeDescription
account_id*string(uuid)

Account ID of the member.

email*string(email)

Email address of the member.

namestring | null

Full name of the member.

org_roleRoleRef | null

The member's org-level role, or null if they hold none.

projectsarray of MemberProject

Projects the member effectively covers in this org. An Org Admin covers every project; everyone else covers only projects they hold a direct binding on. Populated on the directory read.

OrgMemberRowEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*OrgMemberRow
OrgMembersResponse object
FieldTypeDescription
items*array of OrgMemberRow
total_count*integer

Total number of members in the organization.

limit*integer

Page size the request asked for.

offset*integer

Offset the request asked for.

can_invite*boolean

Whether the caller may add a member to the organization (mirrors the POST /orgs/{organization_id}/members gate).

OrgMembersResponseEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*OrgMembersResponse
ProjectMemberResponse object
FieldTypeDescription
account_id*string(uuid)

Account ID of the member.

email*string(email)

Email address of the member.

full_name*string

Full name of the member.

preferred_namestring | null

Preferred name of the member.

actions*object
ProjectMembersViewerResponse object
FieldTypeDescription
can_leaveboolean

Whether the caller can leave the project.

cannot_leave_reasonstring | null

Reason why the caller cannot leave.

can_remove_membersboolean

Whether the caller can remove other members.

ProjectResponse object
FieldTypeDescription
project_id*string(uuid)

Unique project identifier.

organization_id*string(uuid)

Organization the project belongs to.

name*string

Project name.

descriptionstring | null

Project description.

image_urlstring(uri) | null

Project image URL.

colorstring | null

Project color (hex, 6 chars).

is_default*boolean

Whether this is the caller's default project.

created_at*string(date-time)

When the project was created.

ProjectResponseEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*ProjectResponse
RoleCatalogEntry object
FieldTypeDescription
key*string

Opaque role key.

display_name*string

Human-readable role name.

level*RoleLevel
builtin*boolean

Whether this is a built-in role.

editable*boolean

Whether the role's permission bundle can be edited.

invitable*boolean

Whether members can be invited directly at this role.

permissions*array of ScopedPermission
RoleLevel string

The object level a role applies to.

One of: "org", "project"
RoleRef object
FieldTypeDescription
key*string

Opaque role key (e.g. org_admin, project_admin, project_member).

display_name*string

Human-readable role name.

level*RoleLevel
builtin*boolean

Whether this is a built-in role (not a custom org role).

container*ContainerRef
RolesResponse object
FieldTypeDescription
roles*array of RoleCatalogEntry
RolesResponseEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*RolesResponse
ScopedPermission object
FieldTypeDescription
token*string

Permission token held by the role, e.g. members_update, audit_logs_read, tools_execute. The same token can exist at both levels, so level disambiguates.

level*RoleLevel
SuccessEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
dataobject | null

Payload representing the result of an operation. May be empty for delete/success responses.

UpdateProjectInput object
FieldTypeDescription
namestring | null

Project name.

descriptionstring | null

Project description.

image_urlstring(uri) | null

Project image URL.

colorstring | null

Project color (hex, 6 characters).

UserSource object
FieldTypeDescription
id*string

User source id (us_-prefixed KSUID).

Example: "us_0000GfkSkVjL1s3EM2wUfhjxv7B"
organization_id*string(uuid)

Owning organization.

project_idstring(uuid) | null

Owning project. null for organization-bound records.

binding_type*UserSourceBindingType
name*string

Human-readable name.

description*string

Freeform description. Never shown to end users.

protocol*UserSourceProtocol
issuer*string

OIDC issuer URL, stored exactly as submitted (no trailing-slash normalization) so it can be exact-matched against the iss claim.

client_id*string

OIDC client ID.

subject_claim*string

OIDC claim used as the stable subject identifier.

Example: "sub"
scopes*array of string

OIDC scopes requested from the upstream IdP.

Example: ["openid","profile","email"]
status*UserSourceStatus
created_at*string(date-time)

Creation timestamp.

updated_at*string(date-time)

Last-updated timestamp.

UserSourceBindingType string

Whether the record is project-scoped (mutable on this route) or organization-scoped (inherited; GET/PUT/PATCH/DELETE through the project path return 422). Platform-internal static bindings never appear on the wire.

One of: "project", "organization"
UserSourceCreateRequest object
FieldTypeDescription
name*string

Human-readable name.

descriptionstring

Freeform description. Visible to project members, never to end users.

Default: ""
protocolUserSourceProtocol
Default: "oidc"
issuer*string(uri)

OIDC issuer URL. Stored verbatim. Must be reachable and serve a self-consistent discovery document and JWKS at create time.

client_id*string

OIDC client ID.

client_secret*string

OIDC client secret (plaintext; stored encrypted). Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

Default: "sub"
scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid. Tokens must not contain whitespace. Duplicates are collapsed on write while preserving first occurrence.

Default: ["openid","profile","email"]
statusUserSourceStatus
Default: "active"
UserSourceEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSource
UserSourceList object
FieldTypeDescription
items*array of UserSource
total_count*integer

Total matching items across every page.

limit*integer

Page size the request asked for.

offset*integer

Offset the request asked for.

UserSourceListEnvelope object
FieldTypeDescription
code*integer
Example: 200
msg*string
Example: "Request successful"
data*UserSourceList
UserSourcePatchRequest object
FieldTypeDescription
namestring

Human-readable name. Omit to keep the stored value.

descriptionstring

Freeform description. Omit to keep the stored value. Explicit null is stored as an empty string.

protocolUserSourceProtocol
issuerstring(uri) | null

OIDC issuer URL. Omit to keep the stored value. Must not be null. Re-validated only when the string actually changes.

client_idstring

OIDC client ID. Omit to keep the stored value.

client_secretstring | null

OIDC client secret. Omit to keep the stored secret. Send a new value to rotate. Explicit null clears the secret. Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid when sent. Re-validated only when the set actually changes.

statusUserSourceStatus
UserSourceProtocol string

Authentication protocol. Only OIDC is supported.

One of: "oidc"
UserSourceReplaceRequest object
FieldTypeDescription
name*string

Human-readable name.

descriptionstring

Freeform description.

Default: ""
protocolUserSourceProtocol
Default: "oidc"
issuer*string(uri)

OIDC issuer URL. Stored verbatim. Re-validated on replace.

client_id*string

OIDC client ID.

client_secret*string

OIDC client secret (plaintext; stored encrypted). Required on replace. Never returned in responses.

subject_claimstring

OIDC claim used as the stable subject identifier.

Default: "sub"
scopesarray of string

OIDC scopes requested from the upstream IdP. Must include openid.

Default: ["openid","profile","email"]
statusUserSourceStatus
Default: "active"
UserSourceStatus string

Whether the user source is active.

One of: "active", "inactive"