Organization administration of identity and access: signed-in sessions, the organization audit log, access review campaigns, administrative units and their policies, pending invitations, account recovery requests, SSO setup values and test sign-in, break-glass owners and claimed domains.
GET /v1/auth/me/sessions
List my signed-in sessions
Every live session of the signed-in person, newest first (at most 500, with `truncated` when more exist): a device label, the address and its country, when it was last used, paired child sessions under their parent, and `current` on the session making this request. Only a person's own signed-in session may call it; an API key or a delegated worker session is refused.
Auth Session JWT (Bearer)
Responses
| Status | Description |
200 | The live sessions. |
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. |
DELETE /v1/auth/me/sessions/{sessionId}
Sign out one of my sessions
Ends one of the person's own sessions; its paired child sessions end with it. A session that is not the caller's, unknown or already ended answers 404 the same way. At most 30 revokes a minute.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
sessionId | path | string<uuid> | yes | The session to end. |
Responses
| Status | Description |
200 | The session ended. |
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. |
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. |
POST /v1/auth/me/sessions/end-others
Sign out of all my other sessions
Ends every session of the person except the one making this request, which keeps working. Answers how many ended. At most 30 revokes a minute.
Auth Session JWT (Bearer)
Responses
| Status | Description |
200 | The count of sessions ended. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
POST /v1/auth/recovery-request
Ask support to recover an account
A signed-out person who cannot sign in asks support for help. The answer is the same for every address, so it reveals nothing about which addresses have accounts. At most 20 an hour per network and 5 an hour per address.
Public Public: no authentication
Request Body
| Field | Type | Required | Description |
email | string<email> | yes | The address of the account. |
reason | string | yes | What happened. |
Responses
| Status | Description |
202 | The request was taken. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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/invites/pending
List invitations waiting for me
The organizations that invited the signed-in person's verified address and have not been answered.
Auth Session JWT (Bearer)
Responses
| Status | Description |
200 | The pending invitations. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
POST /v1/invites/pending/accept
Accept an invitation
Joins the inviting organization with the invited role. The invitation must be addressed to the caller's own verified address.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
org_id | string<uuid> | yes | The inviting organization. |
invite_id | string<uuid> | yes | The invitation. |
Responses
| Status | Description |
200 | The joined organization and role. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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. |
POST /v1/invites/pending/decline
Decline an invitation
Declines an invitation addressed to the caller's own verified address; the inviting organization sees it as declined.
Auth Session JWT (Bearer)
Request Body
| Field | Type | Required | Description |
org_id | string<uuid> | yes | The inviting organization. |
invite_id | string<uuid> | yes | The invitation. |
Responses
| Status | Description |
200 | The invitation was declined. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
GET /v1/organizations/{orgId}/access-reviews/campaigns
List access review campaigns
The organization's campaigns with their progress, newest first (at most 200). Needs `org.manage_members`. Behind the access reviews switch.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
status | query | string (enum) | no | Only campaigns in this state. |
Responses
| Status | Description |
200 | The campaigns. |
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. |
POST /v1/organizations/{orgId}/access-reviews/campaigns
Create an access review campaign
Creates a draft campaign over the organization roles named in `scope.role_keys` (owners are never reviewed). Needs `org.manage_members`.
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 | The campaign's name. |
scope | object | yes | |
item_kinds | array of enum org_role | no | What is reviewed (organization roles). |
reviewer_rule | any | yes | Who reviews: one named person, or the campaign's creator. |
due_at | string<date-time> | yes | When the campaign is due (in the future). |
recurrence | string (enum) quarterlysemiannualannualnull | no | How often the campaign repeats. |
Responses
| Status | Description |
201 | The draft campaign. |
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. |
GET /v1/organizations/{orgId}/access-reviews/campaigns/{campaignId}
Read an access review campaign
One campaign with its progress, for people who manage members and the campaign's reviewers.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
campaignId | path | string<uuid> | yes | The campaign. |
Responses
| Status | Description |
200 | The campaign. |
401 | 401 Unauthorized: missing, expired, malformed, or revoked credentials. |
404 | 404 Not Found: the requested resource does not exist or is not visible to the caller. |
POST /v1/organizations/{orgId}/access-reviews/campaigns/{campaignId}/close
Close an access review campaign
Closes an open campaign and records the SHA-256 of its decisions in the audit log. Undecided items stay flagged; they are never revoked by closing.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
campaignId | path | string<uuid> | yes | The campaign. |
Responses
| Status | Description |
200 | The closed campaign. |
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). |
GET /v1/organizations/{orgId}/access-reviews/campaigns/{campaignId}/evidence
Export a campaign's evidence
Every item with its decision as CSV or JSON Lines, with a manifest line (the SHA-256 of the data lines and the decisions' recorded hash) before the end marker. The export is recorded in the audit log before the first byte (503 `AUDIT_WRITE_FAILED` and no file when it cannot be). Needs `org.manage_members`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
campaignId | path | string<uuid> | yes | The campaign. |
format | query | string (enum) | no | `csv` (default) or `jsonl`. |
Responses
| Status | Description |
200 | The evidence file. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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. |
GET /v1/organizations/{orgId}/access-reviews/campaigns/{campaignId}/items
List a campaign's review items
One keyset page of the campaign's items with the subject's and reviewer's names and each decision. Needs `org.manage_members`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
campaignId | path | string<uuid> | yes | The campaign. |
after | query | string<uuid> | no | The `next_after` of the previous page. |
limit | query | integer | no | Page size, 1 to 1000 (default 200). |
Responses
| Status | Description |
200 | A page of items and `next_after`. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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. |
POST /v1/organizations/{orgId}/access-reviews/campaigns/{campaignId}/open
Open an access review campaign
Snapshots one review item per grant in scope and opens the campaign. A scope with no grant answers 409 `CAMPAIGN_EMPTY`; a campaign that is not a draft answers 409 `INVALID_STATE`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
campaignId | path | string<uuid> | yes | The campaign. |
Responses
| Status | Description |
200 | The opened campaign. |
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). |
GET /v1/organizations/{orgId}/access-reviews/inbox
List my review items
The caller's undecided items in the organization's open campaigns. A person is never assigned their own access.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
Responses
| Status | Description |
200 | The caller's items. |
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. |
POST /v1/organizations/{orgId}/access-reviews/items/{itemId}/decision
Approve or revoke one review item
The item's reviewer approves or revokes it with a justification of 10 to 2,000 characters, kept with the evidence. A revoke takes effect at once. Answers 403 for anyone but the item's reviewer, 409 `ALREADY_DECIDED` or `INVALID_STATE` when the item or campaign no longer takes a decision.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
itemId | path | string<uuid> | yes | The review item. |
Request Body
| Field | Type | Required | Description |
decision | string (enum) approverevoke | yes | The decision. |
justification | string | yes | Why, kept with the evidence. |
Responses
| Status | Description |
200 | The decision. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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). |
POST /v1/organizations/{orgId}/access-reviews/items/bulk-decision
Approve or revoke review items in bulk
Up to 500 of the caller's items decided with one justification; each is decided as a single decision would be, and an item that is refused is reported with its code while the rest are decided.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
item_ids | array of string | yes | The items. |
decision | string (enum) approverevoke | yes | The decision for every item. |
justification | string | yes | Why, kept with the evidence. |
Responses
| Status | Description |
200 | `decided` and the `failed` items with their codes. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
GET /v1/organizations/{orgId}/audit-log
Read or export the organization audit log
The organization's audit events, newest first, one keyset page at a time (`before` is the opaque cursor of the previous page), with redacted details. `format=csv` or `format=jsonl` exports the same filter as a file of at most 50,000 rows (400 `EXPORT_TOO_LARGE` beyond); the export is itself recorded before the first byte (503 `AUDIT_WRITE_FAILED` and no file when it cannot be). Needs `audit.read`. Unknown query keys are ignored.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
action | query | string | no | An exact action name. |
action_prefix | query | string | no | Actions starting with this text (for example `member.`). |
actor_id | query | string<uuid> | no | Events by this person. |
resource_type | query | string | no | Events on this kind of resource. |
from_date | query | string<date-time> | no | Events at or after this time. |
to_date | query | string<date-time> | no | Events at or before this time. |
limit | query | integer | no | Page size, 1 to 1000. |
before | query | string | no | The opaque cursor of the previous page. |
format | query | string (enum) | no | `json` (default), `csv` or `jsonl`. |
Responses
| Status | Description |
200 | A page of events (JSON), or the export file (CSV with a final `#end,<rows>` line, or JSON Lines ending with `{"end":true,"rows":N}`). |
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. |
500 | 500 Internal Server Error: an unexpected server-side error. |
GET /v1/organizations/{orgId}/domains/{domain}/accounts
List the accounts on a verified domain
The accounts whose address is on a domain the organization verified, so an owner can invite them. Needs `org.manage_settings`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
domain | path | string | yes | The verified domain. |
Responses
| Status | Description |
200 | The accounts. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
POST /v1/organizations/{orgId}/domains/claim
Claim a verified domain
Claims (or with `claim: false` releases) a domain the organization verified, so sign-ups on it are sent to the organization's SSO when SSO is required. Needs `org.manage_settings` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
Request Body
| Field | Type | Required | Description |
domain | string | yes | The verified domain. |
claim | boolean | no | Claim (default) or release. |
Responses
| Status | Description |
200 | The domain's claim state. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
GET /v1/organizations/{orgId}/isolation/break-glass
List break-glass owners
The owners (at most two) who may still sign in with a password while the organization requires single sign-on. Needs `org.manage_settings`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
Responses
| Status | Description |
200 | The break-glass owners. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
POST /v1/organizations/{orgId}/isolation/break-glass/{userId}
Add a break-glass owner
Lets an owner sign in with a password while SSO is required (at most two). Needs `org.manage_settings` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
userId | path | string<uuid> | yes | The owner. |
Responses
| Status | Description |
200 | The owner was added. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
DELETE /v1/organizations/{orgId}/isolation/break-glass/{userId}
Remove a break-glass owner
Stops an owner signing in with a password while SSO is required. Needs `org.manage_settings` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
userId | path | string<uuid> | yes | The owner. |
Responses
| Status | Description |
200 | The owner was removed. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
GET /v1/organizations/{orgId}/members/{userId}/sessions
List a member's sessions in this organization
The member's live sessions in this organization, with device labels and country only (no address). Needs `org.manage_members`.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
userId | path | string<uuid> | yes | The member. |
Responses
| Status | Description |
200 | The member's sessions. |
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. |
POST /v1/organizations/{orgId}/members/{userId}/sessions/revoke
Sign a member out of this organization
Ends every session the member holds in this organization. Needs `org.manage_members` and a fresh two-factor step-up (403 `MFA_STEPUP_REQUIRED` asks for it).
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
orgId | path | string<uuid> | yes | Organization identifier (UUIDv7). |
userId | path | string<uuid> | yes | The member. |
Responses
| Status | Description |
200 | The count of sessions ended. |
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. |
429 | 429 Too Many Requests: a rate limit or usage quota was exceeded. Retry after the indicated window. |
GET /v1/policies/effective
Read a person's effective sign-in policies
The session duration, required second factors and IP allowlist that govern one person, and where each comes from (a unit or the organization). For the person, an organization member manager, or a unit admin covering them.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
user_id | query | string<uuid> | yes | The person. |
Responses
| Status | Description |
200 | The effective policies. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
GET /v1/policies/units/{unitId}
Read a unit's sign-in policies
The unit's own policy rows, the locked rows of its ancestor units, the organization values it inherits and the policy keys units may set.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
unitId | path | string<uuid> | yes | The unit. |
Responses
| Status | Description |
200 | The unit's policies. |
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. |
PUT /v1/policies/units/{unitId}
Set several of a unit's sign-in policies
Sets one or more of `session_duration`, `mfa_required_methods` and `ip_allowlist` on the unit, in that order; the first refusal answers. 409 `POLICY_LOCKED` when the organization does not let units set a key or an ancestor locked it. Needs a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
unitId | path | string<uuid> | yes | The unit. |
Request Body
| Field | Type | Required | Description |
session_duration | any | no | `{"hours": 1..720}`, or null to clear. |
mfa_required_methods | any | no | 1 to 4 of totp, webauthn, passkey, email_otp, or null to clear. |
ip_allowlist | any | no | At most 100 addresses or CIDR blocks, or null to clear. |
locked | boolean | no | Lock the values for sub-units (organization-wide administrators only). |
Responses
| Status | Description |
200 | The values set. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
PUT /v1/policies/units/{unitId}/{policyKey}
Set one of a unit's sign-in policies
Sets (or with a null value clears) one policy on the unit. 409 `POLICY_LOCKED` when the organization does not let units set the key or an ancestor locked it; 400 `VALIDATION_ERROR` for an out-of-range value or an invalid CIDR. Needs a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
unitId | path | string<uuid> | yes | The unit. |
policyKey | path | string (enum) | yes | The policy. |
Request Body
| Field | Type | Required | Description |
value | any | yes | The policy value, or null to clear the unit's value. |
locked | boolean | no | Lock the value for sub-units (organization-wide administrators only). |
Responses
| Status | Description |
200 | The value set. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
PUT /v1/rbac/departments/{departmentId}/admin-unit
Make a department an administrative unit, or stop
Marks or unmarks the department as an administrative unit, whose admins manage only its subtree. Needs `org.manage_roles` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
departmentId | path | string<uuid> | yes | The department. |
Request Body
| Field | Type | Required | Description |
is_admin_unit | boolean | yes | Whether the department is an administrative unit. |
Responses
| Status | Description |
200 | The department. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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. |
GET /v1/rbac/departments/{departmentId}/admins
List a unit's admins
The people holding a unit role on this administrative unit, with the role.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
departmentId | path | string<uuid> | yes | The unit. |
Responses
| Status | Description |
200 | The unit's admins. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
POST /v1/rbac/departments/{departmentId}/admins
Grant a unit role
Grants a person a unit role on this administrative unit. Needs `org.manage_roles` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
departmentId | path | string<uuid> | yes | The unit. |
Request Body
| Field | Type | Required | Description |
user_id | string<uuid> | yes | The person. |
role_key | string (enum) unit_member_adminunit_security_adminunit_report_reader | yes | The unit role. |
Responses
| Status | Description |
201 | The grant. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
409 | 409 Conflict: the request conflicts with an existing resource or current state (unique constraint, optimistic-lock, duplicate). |
DELETE /v1/rbac/departments/{departmentId}/admins
Revoke a unit role
Revokes a person's unit role on this administrative unit. Needs `org.manage_roles` and a fresh two-factor step-up.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
departmentId | path | string<uuid> | yes | The unit. |
Request Body
| Field | Type | Required | Description |
user_id | string<uuid> | yes | The person. |
role_key | string (enum) unit_member_adminunit_security_adminunit_report_reader | yes | The unit role. |
Responses
| Status | Description |
200 | The grant was revoked. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
GET /v1/rbac/unit-admin-scope
Read your unit admin scope
The administrative units you manage the members of, and the people inside them (at most 5,000, with `truncated` above that). Needs an active membership; a person with no unit role gets empty lists.
Auth Session JWT (Bearer)
Responses
| Status | Description |
200 | Your units and the people in them. |
403 | 403 Forbidden: authenticated but lacking the required membership, role, permission, MFA step-up, or feature entitlement. |
POST /v1/sso/configs/{configId}/test-signin
Start a test sign-in with an identity provider
A one-time start URL (valid 10 minutes) for the administrator's own sign-in at the identity provider. The callback records the result on the configuration (`last_test_result`) and signs no one in. OIDC and SAML configurations.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
configId | path | string<uuid> | yes | The SSO configuration. |
Responses
| Status | Description |
200 | `start_url` and `expires_at`. |
400 | 400 Bad Request: a request parameter, body field, or the JSON body itself failed validation. |
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/sso/sp-details
Get the values to give an identity provider
The service provider values an administrator gives the identity provider before any configuration exists: for SAML the entity ID, ACS URL, NameID format and (once saved) the metadata URL; for OIDC the redirect URI and scopes.
Auth Session JWT (Bearer)
Parameters
| Name | In | Type | Required | Description |
protocol | query | string (enum) | yes | The protocol. |
config_id | query | string<uuid> | no | A saved configuration, for its own metadata URL. |
Responses
| Status | Description |
200 | The service provider values. |
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. |