Start with the right environment
- Open your workspace and project, then choose Development or Production.
- Open API keys. Create a key with the smallest set of scopes your server needs. The examples below use
users:read. - Save the one-time key in your server’s secret manager alongside that environment’s application ID.
AUTHID_APPLICATION_ID=YOUR_ENVIRONMENT_APPLICATION_ID
AUTHID_API_KEY=YOUR_SERVER_API_KEYRun diagnostics to compare the key’s application, environment, scopes and organization restriction with your intended target. Diagnostics confirm your key’s application, environment, and scope. Verify the sign-in flow separately in your application.
Read your first page
Install the versioned Node or Python package below to manage application resources with typed operations. Use the authentication guides for Ruby and Rust integrations.
npm install https://identiblok.com/downloads/management/identiblok-authid-0.4.0-alpha.1.tgzimport { Management } from '@identiblok/authid/management';
const client = new Management({
apiKey: process.env.AUTHID_API_KEY,
applicationId: process.env.AUTHID_APPLICATION_ID,
origin: process.env.AUTHID_ORIGIN ?? 'https://auth.identiblok.com',
});
// Verifies that the key belongs to the application you expect.
const context = await client.diagnostics();
console.log(context);
// Requires users:read. Each page has a deadline; stop after at most three.
for await (const page of client.pages('users_list', {}, { maxPages: 3 })) {
console.log({ users: page.data.length, nextCursor: page.next_cursor });
}Each operation checks the application before dispatch. A call has one deadline, including that check. Pages default to a maximum of 10; you can request 1–100. Keep the last cursor to continue, and stop when next_cursor is null or has_more is false. Permission decisions still require the existing signature-verifying AuthID.check interface.
Read one customer’s audit trail
Customer audit logs are separate from administrative history. Check features.audit_logs in diagnostics before calling these operations. Set AUTHID_ORGANIZATION_ID to the customer organization within your selected application.
Use audit-logs:read for search and export,audit-logs:write for server-side ingestion, andaudit-logs:admin for schemas, retention and streams. These scopes are independent; audit:read does not grant customer audit access.
npm install https://identiblok.com/downloads/management/identiblok-authid-0.4.0-alpha.1.tgz// Server-only, read-only example. Requires audit-logs:read for this organization.
import { Management } from '@identiblok/authid/management';
const client = new Management({
apiKey: process.env.AUTHID_API_KEY,
applicationId: process.env.AUTHID_APPLICATION_ID,
origin: process.env.AUTHID_ORIGIN || 'https://auth.identiblok.com',
});
const context = await client.diagnostics();
if (!context.features.audit_logs) throw new Error('Audit logs are not enabled on this service.');
const path = { organization: process.env.AUTHID_ORGANIZATION_ID };
let count = 0, last;
for await (const page of client.pages('audit_logs_events_list', { path, query: { limit: 100 } }, { maxPages: 3 })) {
count += page.data.length;
last = page;
}
// A bounded read may be partial. Resume with next_cursor and the same filters.
// For CSV pages, use audit_logs_export; each page includes its own header.
console.log({ auditEvents: count, hasMore: last?.has_more ?? false, nextCursor: last?.next_cursor ?? null });Exact action, actor and any-target filters combine with inclusive UTC occurrence times. The server orders records by receipt time. Snapshots expire after one hour or a retention change. Oncursor_expired, restart the query; do not append a new snapshot to an old partial export.
audit_logs_export returns CSV inside a JSON page. Audit exports have a 4 MiB response limit. Follow its cursor with unchanged filters until has_moreis false; keep only the first header if combining pages. The console’s “Download this page” exports just its displayed snapshot and page size.
Create an immutable schema before ingesting events. Reuse a request ID only for identical data. Keep credentials out of audit records. Stream receivers must verify signatures against the exact request bytes and deduplicate event IDs. A queued replay is not proof of delivery.
Inspect from your command line
The Python download includes authid. It reads the same server environment variables. Listing supported operations works offline.
authid operations
authid diagnose
authid call users_list --pages 3To change data, name the operation, provide its path/query/body input and add --confirm after reviewing it. The key must also have the required write scope. Tools do not create API keys or print one-time invitation and webhook secrets. URL paths and queries are redacted in tool output.
Preview profile changes first
Profile migration updates people who have already joined this application. It replaces the application-local profile with only display_name and external_id. It does not import credentials, create identities or link accounts by email.
Replace the subject placeholder with an AuthID already joined to this application.
[
{
"subject": "AUTHID_ALREADY_JOINED_TO_THIS_APP",
"profile": { "display_name": "Example user", "external_id": "customer-123" }
}
]authid profile-migration --input-file profiles.json
# After reviewing replacements and the target application:
authid profile-migration --input-file profiles.json --apply --confirmThe preview is offline and validates the entire file: at most 100 records and 64 KiB. Apply checks each membership, then sends one atomic batch. An invalid or missing member prevents the batch from applying. A timeout may occur after a successful write; inspect current profiles before deciding to retry.
Give a local agent scoped access
The optional MCP server runs locally over standard input and output. It uses the official Python SDK and inherits your configured key’s authority. It opens no network listener.
python -m pip install "identiblok-authid[mcp] @ https://identiblok.com/downloads/management/identiblok_authid-0.4.0a1-py3-none-any.whl"
authid-mcpConfigure your MCP host to run authid-mcp with the three server variables AUTHID_API_KEY, AUTHID_APPLICATION_ID and, if needed, AUTHID_ORIGIN. Use the host’s private secret settings; tool arguments cannot change them.
Read-only tools are the default. To enable mutations, start with --allow-mutations, require human approval in your host, and supply confirm: true for each write. The server exposes no shell, arbitrary request, file-access, key-creation, audit-ingestion or secret-returning tools. Returned customer text is data, never an instruction to the agent.
Resolve the failure without guessing
- application_mismatch
- Use the key and application ID from the same selected environment. No operation was dispatched.
- insufficient_scope
- Check the operation’s scopes below. Ask an environment manager for a suitably restricted key.
- stale_version
- Read the latest resource, review the change and submit its current version.
- stale_preview
- Request a fresh retention preview, review the affected count, and confirm again. The console’s “Review impact again” keeps your proposed days.
- cursor_expired
- Restart the audit query or export with the same filters. Existing partial output is not a complete export.
- not_found or unavailable
- Check the resource, organization restriction and module availability. A foreign resource also appears as not found.
- transport_error or invalid_response
- For a write, inspect the resource before retrying; the server may have completed it. Keep any request ID for support, without sharing the key.
Public API v1
80 operations. Keys remain application-scoped. Additive response fields are supported; a breaking change requires a new major API version. OIDC, SAML and passkeys keep their protocol-specific guides.
Schema references below resolve in the complete OpenAPI document. Responses use a structured error code and request ID. No management client automatically retries a write.
Connection diagnostics
GET/v1/diagnostics
diagnostics
Any valid current scoped key. Returns only its own application and restriction. No scope overrides. Does not prove provider readiness.
- Scopes
- Any valid scoped server key
- Operation
- Read-only
{
"$ref": "#/components/schemas/Diagnostics"
}Signed chain
GET/v1/chain/config
chain config
Public network identity. Pin independently; do not trust a key downloaded during a permission decision.
- Scopes
- Public
- Operation
- Read-only
{
"$ref": "#/components/schemas/ChainConfig"
}GET/v1/chain/blocks
chain blocks
At most one signed permission block after height. Verify contiguous history using the existing SDK; envelopes follow the signed-chain protocol.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "after",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/JsonObject"
}
}
},
"required": [
"data"
],
"additionalProperties": true
}Permission decisions and grants
POST/v1/permissions/check
permissions check
Use AuthID.check/require to verify signature, nonce, exact scope, expiry and durable checkpoint. A raw JSON allowed field is insufficient.
- Scopes
- permissions:read
- Operation
- Read-only
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"permission": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
},
"resource": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
},
"nonce": {
"type": "string"
}
},
"required": [
"subject",
"permission"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Decision"
}POST/v1/permissions/grant
permissions grant
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"permission": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
},
"resource": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"subject",
"permission"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}POST/v1/permissions/revoke
permissions revoke
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"permission": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
},
"resource": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"subject",
"permission"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}Legacy roles
POST/v1/roles/define
legacy roles define
Legacy permission-ledger role operation. Adopted catalog roles must be changed through /v1/rbac.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"maxItems": 100
}
},
"required": [
"role",
"permissions"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}POST/v1/roles/delete
legacy roles delete
Legacy permission-ledger role operation. Adopted catalog roles must be changed through /v1/rbac.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
}
},
"required": [
"role"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}POST/v1/roles/assign
legacy roles assign
Legacy permission-ledger role operation. Adopted catalog roles must be changed through /v1/rbac.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"role",
"subject"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}POST/v1/roles/unassign
legacy roles unassign
Legacy permission-ledger role operation. Adopted catalog roles must be changed through /v1/rbac.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"role",
"subject"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/ChainHead"
}Application users
GET/v1/users
users list
Scoped to the application identified by the server API key.
- Scopes
- users:read
- Operation
- Read-only
[
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}GET/v1/users/{subject}
users get
Scoped to the application identified by the server API key.
- Scopes
- users:read
- Operation
- Read-only
[
{
"name": "subject",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/User"
}PATCH/v1/users/{subject}
users update
Supply blocked or profile. Profile replaces the application-local profile; blocking preserves role assignments.
- Scopes
- users:write
- Operation
- Changes application data
[
{
"name": "subject",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"blocked": {
"type": "boolean"
},
"profile": {
"$ref": "#/components/schemas/ProfileInput"
}
},
"required": [],
"additionalProperties": false,
"minProperties": 1
}{
"$ref": "#/components/schemas/User"
}DELETE/v1/users/{subject}
users remove
Removes application access and profile; never deletes the global identity.
- Scopes
- users:write
- Operation
- Changes application data
[
{
"name": "subject",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"removed": {
"type": "boolean"
}
},
"required": [
"removed"
],
"additionalProperties": true
}POST/v1/users/import
users import
Atomic batch replacing profiles of already-joined AuthIDs only. No identity creation, credential import or email matching.
- Scopes
- users:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"profile": {
"$ref": "#/components/schemas/ProfileInput"
}
},
"required": [
"subject",
"profile"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 100
}
},
"required": [
"records"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"imported": {
"type": "integer"
}
},
"required": [
"imported"
],
"additionalProperties": true
}Organizations and members
GET/v1/organizations
organizations list
Scoped to the application identified by the server API key.
- Scopes
- organizations:read
- Operation
- Read-only
[
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Organization"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/organizations
organizations create
Scoped to the application identified by the server API key.
- Scopes
- organizations:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"external_id": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"metadata": {
"type": [
"object",
"null"
],
"maxProperties": 20,
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"name"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Organization"
}GET/v1/organizations/{organization}
organizations get
Scoped to the application identified by the server API key.
- Scopes
- organizations:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/Organization"
}PATCH/v1/organizations/{organization}
organizations update
Workspace projects require the current version. A stale version returns 409; reload and review before retrying.
- Scopes
- organizations:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"external_id": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"metadata": {
"type": [
"object",
"null"
],
"maxProperties": 20,
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"version": {
"type": "integer",
"minimum": 0
}
},
"required": [
"name"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Organization"
}DELETE/v1/organizations/{organization}
organizations remove
Legacy applications only; workspace projects reject deletion with 403. Revokes organization-restricted credentials.
- Scopes
- organizations:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"deleted": {
"type": "boolean"
}
},
"required": [
"deleted"
],
"additionalProperties": true
}GET/v1/organizations/{organization}/members
members list
Scoped to the application identified by the server API key.
- Scopes
- organizations:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Member"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/organizations/{organization}/members
members update
role_ids additionally requires permissions:write and RBAC enabled; allowed only when adding. Omitted role_ids uses defaults for a new member; [] explicitly assigns none. Removal revokes organization access.
- Scopes
- organizations:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"remove": {
"type": "boolean"
},
"role_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"maxItems": 10
}
},
"required": [
"subject"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"saved": {
"type": "boolean"
}
},
"required": [
"saved"
],
"additionalProperties": true
}POST/v1/organizations/{organization}/invitations
invitations create
Returns a one-use invitation URL. Deliver it through your verified channel; the API does not send email. Keep it out of logs and agent tool output. A repeated request_id omits invitation_url and returns secret_retrievable=false; retain the first result privately.
- Scopes
- organizations:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"email"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Invitation"
}Administrative history
GET/v1/audit
audit list
Scoped to the application identified by the server API key.
- Scopes
- audit:read
- Operation
- Read-only
[
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AuditEvent"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}Events
GET/v1/events/types
events types
Scoped to the application identified by the server API key.
- Scopes
- events:read
- Operation
- Read-only
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EventType"
}
}
},
"required": [
"data"
],
"additionalProperties": true
}GET/v1/events
events list
Opaque cursors are scoped and bound to filters/retention. Stop catch-up when has_more is false, even though next_cursor remains nonempty. Retain that cursor for future polling; expiration/conflict requires a new query.
- Scopes
- events:read
- Operation
- Read-only
[
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "until",
"in": "query",
"required": false,
"schema": {
"type": "integer"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Event"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"has_more": {
"type": "boolean"
}
},
"required": [
"data",
"next_cursor",
"has_more"
],
"additionalProperties": true
}GET/v1/events/{event_id}
events get
Scoped to the application identified by the server API key.
- Scopes
- events:read
- Operation
- Read-only
[
{
"name": "event_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/Event"
}Webhooks and delivery
GET/v1/webhooks
webhooks list
Reads currently require webhooks:write. Do not invent a webhooks:read scope.
- Scopes
- webhooks:write
- Operation
- Read-only
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Webhook"
}
}
},
"required": [
"data"
],
"additionalProperties": true
}POST/v1/webhooks
webhooks create
contract_version/organization_id require event fabric. New integrations should explicitly choose contract_version 1. Store the returned signing secret privately.
- Scopes
- webhooks:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"events": {
"type": "array",
"items": {
"type": "string"
}
},
"contract_version": {
"enum": [
0,
1
]
},
"organization_id": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"url",
"events"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/WebhookCreated"
}DELETE/v1/webhooks/{hook}
webhooks disable
Scoped to the application identified by the server API key.
- Scopes
- webhooks:write
- Operation
- Changes application data
[
{
"name": "hook",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"disabled": {
"type": "boolean"
}
},
"required": [
"disabled"
],
"additionalProperties": true
}GET/v1/webhooks/{hook}/deliveries
webhooks deliveries
Scoped to the application identified by the server API key.
- Scopes
- webhooks:write
- Operation
- Read-only
[
{
"name": "hook",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Delivery"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/webhooks/{hook}/replays
webhooks replay
Scoped to the application identified by the server API key.
- Scopes
- webhooks:write
- Operation
- Changes application data
[
{
"name": "hook",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"event_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"minItems": 1,
"maxItems": 100,
"uniqueItems": true
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"event_ids",
"request_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"delivery_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
"event_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
},
"required": [
"delivery_ids",
"event_ids"
],
"additionalProperties": true
}POST/v1/webhooks/{hook}/rotate-secret
webhooks rotate
First response returns the new secret; repeating request_id never retrieves it again. During overlap verify any valid v1 signature. No automatic retries.
- Scopes
- webhooks:write
- Operation
- Changes application data
[
{
"name": "hook",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"overlap_seconds": {
"type": "integer",
"minimum": 0,
"maximum": 86400
}
},
"required": [
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/WebhookRotation"
}Roles and permissions
GET/v1/rbac/permissions
rbac permissions list
Scoped to the application identified by the server API key.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Permission"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/rbac/permissions
rbac permissions create
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"description": {
"type": "string",
"maxLength": 500,
"pattern": "^(?:$|(?=.*\\S)[^<>\\x00-\\x1f]+)$"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"slug",
"name"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Permission"
}PATCH/v1/rbac/permissions/{entry_id}
rbac permissions update
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
[
{
"name": "entry_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"description": {
"type": "string",
"maxLength": 500,
"pattern": "^(?:$|(?=.*\\S)[^<>\\x00-\\x1f]+)$"
},
"version": {
"type": "integer",
"minimum": 0
}
},
"required": [
"name",
"description",
"version"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Permission"
}DELETE/v1/rbac/permissions/{entry_id}
rbac permissions retire
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
[
{
"name": "entry_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"confirm": {
"const": true
}
},
"required": [
"version",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Permission"
}GET/v1/rbac/roles
rbac roles list
Scoped to the application identified by the server API key.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Role"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/rbac/roles
rbac roles create
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"description": {
"type": "string",
"maxLength": 500,
"pattern": "^(?:$|(?=.*\\S)[^<>\\x00-\\x1f]+)$"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"maxItems": 100
}
},
"required": [
"slug",
"name",
"permissions"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Role"
}GET/v1/rbac/roles/{role_id}
rbac roles get
Scoped to the application identified by the server API key.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "role_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "organization",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
}
]{
"$ref": "#/components/schemas/Role"
}PATCH/v1/rbac/roles/{role_id}
rbac roles update
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
[
{
"name": "role_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"description": {
"type": "string",
"maxLength": 500,
"pattern": "^(?:$|(?=.*\\S)[^<>\\x00-\\x1f]+)$"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"maxItems": 100
},
"version": {
"type": "integer",
"minimum": 0
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"name",
"permissions",
"version"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Role"
}DELETE/v1/rbac/roles/{role_id}
rbac roles retire
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
[
{
"name": "role_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"confirm": {
"const": true
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"version",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Role"
}POST/v1/rbac/roles/adopt
rbac roles adopt
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"legacy_role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"description": {
"type": "string",
"maxLength": 500,
"pattern": "^(?:$|(?=.*\\S)[^<>\\x00-\\x1f]+)$"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"legacy_role",
"name"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Role"
}POST/v1/rbac/roles/{role_id}/assignments
rbac assignments update
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
[
{
"name": "role_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"version": {
"type": "integer",
"minimum": 0
},
"remove": {
"type": "boolean"
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"subject",
"version"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"role_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"organization_id": {
"type": "string"
},
"assigned": {
"type": "boolean"
},
"version": {
"type": "integer",
"minimum": 0
}
},
"required": [
"role_id",
"subject",
"organization_id",
"assigned",
"version"
],
"additionalProperties": true
}GET/v1/rbac/defaults
rbac defaults get
Scoped to the application identified by the server API key.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
}
]{
"$ref": "#/components/schemas/Defaults"
}PUT/v1/rbac/defaults
rbac defaults update
Scoped to the application identified by the server API key.
- Scopes
- permissions:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"role_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"maxItems": 10
},
"version": {
"type": "integer",
"minimum": 0
},
"organization": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
},
"required": [
"role_ids",
"version"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/Defaults"
}GET/v1/rbac/access/{subject}
rbac access get
Administrative explanation only; use a verified signed decision to authorize an action.
- Scopes
- permissions:read
- Operation
- Read-only
[
{
"name": "subject",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "organization",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^([a-z0-9_-]{8,100})?$"
}
}
]{
"$ref": "#/components/schemas/EffectiveAccess"
}GET/v1/rbac/legacy-roles
rbac legacy list
Scoped to the application identified by the server API key.
- Scopes
- permissions:read
- Operation
- Read-only
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
}
}
},
"required": [
"role",
"permissions"
],
"additionalProperties": true
}
}
},
"required": [
"data"
],
"additionalProperties": true
}Entitlements
PUT/v1/entitlements
entitlements configure
Scoped to the application identified by the server API key.
- Scopes
- entitlements:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"feature": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"enabled": {
"type": "boolean"
},
"limit": {
"type": "integer",
"minimum": 0,
"maximum": 1000000000
},
"period_seconds": {
"type": "integer",
"minimum": 60,
"maximum": 31622400
},
"expires_at": {
"type": "integer"
}
},
"required": [
"subject",
"feature",
"enabled",
"limit",
"period_seconds",
"expires_at"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"saved": {
"type": "boolean"
}
},
"required": [
"saved"
],
"additionalProperties": true
}POST/v1/entitlements/check
entitlements check
Scoped to the application identified by the server API key.
- Scopes
- entitlements:read
- Operation
- Read-only
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"feature": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
}
},
"required": [
"subject",
"feature"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EntitlementResult"
}POST/v1/entitlements/consume
entitlements consume
Scoped to the application identified by the server API key.
- Scopes
- entitlements:write
- Operation
- Changes application data
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"feature": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"amount": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"request_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
"required": [
"subject",
"feature",
"amount",
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EntitlementResult"
}Customer audit logs
GET/v1/audit-logs/organizations/{organization}/schemas
audit logs schemas list
Scoped to the application identified by the server API key.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerAuditSchema"
},
"maxItems": 100
}
},
"required": [
"data"
],
"additionalProperties": true
}POST/v1/audit-logs/organizations/{organization}/schemas
audit logs schemas create
Create an immutable schema version for this organization. Repeating identical content returns the existing schema; changed content needs a new version. Credential fields are rejected.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"action": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,99}$"
},
"version": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"metadata": {
"type": "object",
"maxProperties": 20,
"propertyNames": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,99}$"
},
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"enum": [
"string",
"number",
"boolean"
]
},
"required": {
"type": "boolean"
}
},
"required": [
"type",
"required"
],
"additionalProperties": false
}
}
},
"required": [
"action",
"version",
"metadata"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/CustomerAuditSchema"
}GET/v1/audit-logs/organizations/{organization}/events
audit logs events list
Exact action/actor/any-target and inclusive occurrence-time filters. Records are ordered by server receipt. Opaque one-hour snapshots bind this key, organization and filters. Stop at has_more=false; restart after cursor_expired. page_cursor can export the displayed page with the same limit.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 4096
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "action",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,99}$"
}
},
{
"name": "actor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
{
"name": "target",
"in": "query",
"required": false,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
{
"name": "until",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerAuditEvent"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"has_more": {
"type": "boolean"
},
"page_cursor": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"data",
"next_cursor",
"has_more",
"page_cursor"
],
"additionalProperties": true
}POST/v1/audit-logs/organizations/{organization}/events
audit logs events ingest
Atomically accept an event of at most 8 KiB and queue active streams. Schema must exist; occurrence time is at most five minutes in the future. Request IDs deduplicate identical data for at least 30 days and while the record remains retained. Different data conflicts; a still-deduplicated expired record returns 410. Actor data is application-supplied, not identity authority. Never include credentials.
- Scopes
- audit-logs:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"event": {
"$ref": "#/components/schemas/CustomerAuditEventInput"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"event",
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/CustomerAuditEvent"
}GET/v1/audit-logs/organizations/{organization}/events/{event_id}
audit logs events get
Scoped to the application identified by the server API key.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "event_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/CustomerAuditEvent"
}GET/v1/audit-logs/organizations/{organization}/export
audit logs export
Authenticated CSV page inside JSON, with a header on each page and formula-safe quoted cells. Iterate next_cursor with unchanged filters until has_more=false for a complete export. Browser downloads explicitly cover one displayed page. Snapshot expiry requires restarting; never silently treat a partial export as complete.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 4096
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "action",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,99}$"
}
},
{
"name": "actor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
{
"name": "target",
"in": "query",
"required": false,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
{
"name": "until",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
]{
"type": "object",
"properties": {
"csv": {
"type": "string"
},
"row_count": {
"type": "integer"
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"has_more": {
"type": "boolean"
}
},
"required": [
"csv",
"row_count",
"next_cursor",
"has_more"
],
"additionalProperties": true
}GET/v1/audit-logs/organizations/{organization}/retention
audit logs retention get
Scoped to the application identified by the server API key.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"retention_days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
}
},
"required": [
"retention_days"
],
"additionalProperties": true
}PUT/v1/audit-logs/organizations/{organization}/retention
audit logs retention change
Explicitly confirm a fresh impact preview. Shorter retention makes expired records unavailable and schedules bounded cleanup. Extending later cannot restore them. On stale_preview obtain a new preview and human confirmation.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
},
"confirmation": {
"type": "string",
"maxLength": 4096
},
"confirm": {
"const": true
}
},
"required": [
"days",
"confirmation",
"confirm"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"retention_days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
}
},
"required": [
"retention_days"
],
"additionalProperties": true
}POST/v1/audit-logs/organizations/{organization}/retention/preview
audit logs retention preview
Preview retained events affected by a policy change. The ten-minute confirmation is bound to this key, organization, days, current policy and affected count. Does not change retention.
- Scopes
- audit-logs:admin
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
}
},
"required": [
"days"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"retention_days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
},
"proposed_days": {
"type": "integer",
"minimum": 7,
"maximum": 3650
},
"affected_count": {
"type": "integer"
},
"confirmation": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"retention_days",
"proposed_days",
"affected_count",
"confirmation"
],
"additionalProperties": true
}GET/v1/audit-logs/organizations/{organization}/streams
audit logs streams list
Scoped to the application identified by the server API key.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerAuditStream"
},
"maxItems": 100
}
},
"required": [
"data"
],
"additionalProperties": true
}POST/v1/audit-logs/organizations/{organization}/streams
audit logs streams create
Create a public HTTPS receiver, at most five active streams per organization. Only new events are queued. First response returns a signing secret once; repeating a request never retrieves it. Destinations are encrypted; listings expose only their origin. Receiver must deduplicate stable event IDs.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"url",
"label",
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/CustomerAuditStreamCreated"
}DELETE/v1/audit-logs/organizations/{organization}/streams/{stream_id}
audit logs streams disable
Disable permanently and erase stored destination credentials. Stop new delivery authorizations; an already-authorized request may still arrive. Cannot re-enable this stream.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "stream_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"confirm": {
"const": true
}
},
"required": [
"confirm"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"disabled": {
"type": "boolean"
}
},
"required": [
"disabled"
],
"additionalProperties": true
}POST/v1/audit-logs/organizations/{organization}/streams/{stream_id}/rotate-secret
audit logs streams rotate
One-time secret rotation, with 0-86400 seconds of overlap (default zero). Same request ID never retrieves the secret again. Verify any valid v1 signature during overlap; do not automatically retry.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "stream_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
},
"overlap_seconds": {
"type": "integer",
"minimum": 0,
"maximum": 86400
}
},
"required": [
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/WebhookRotation"
}POST/v1/audit-logs/organizations/{organization}/streams/{stream_id}/replays
audit logs streams replay
Queue 1-100 distinct retained events for redelivery; request IDs make retries idempotent. Queued does not imply delivered. Expired records cannot be replayed.
- Scopes
- audit-logs:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "stream_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"event_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"minItems": 1,
"maxItems": 100,
"uniqueItems": true
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^\\x00-\\x1f]+$"
}
},
"required": [
"event_ids",
"request_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"delivery_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
"event_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
},
"required": [
"delivery_ids",
"event_ids"
],
"additionalProperties": true
}GET/v1/audit-logs/organizations/{organization}/streams/{stream_id}/deliveries
audit logs deliveries list
Scoped to the application identified by the server API key.
- Scopes
- audit-logs:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "stream_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerAuditDelivery"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"has_more": {
"type": "boolean"
}
},
"required": [
"data",
"next_cursor",
"has_more"
],
"additionalProperties": true
}Enterprise SSO
GET/v1/sso/organizations/{organization}/connections
sso connections list
Exact application and customer organization scope. Configuration reads never return client secrets. Disabled unless enterprise_sso is enabled. Lists at most 10 connections in ID order. Pass next_cursor until null; this is a live inventory, not a snapshot.
- Scopes
- sso:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EnterpriseConnection"
},
"maxItems": 10
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
],
"additionalProperties": true
}POST/v1/sso/organizations/{organization}/connections
sso connections create
Create an organization-bound draft. Missing provider settings are reported without enabling login. At most 100 lifetime and 10 enabled connections per organization. The same request ID and inputs return current connection state for 30 days; changed inputs conflict. Keep secrets in a private server integration.
- Scopes
- sso:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"const": "saml"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"configuration": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"sso_url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"certificates": {
"type": "array",
"items": {
"type": "string",
"maxLength": 16384
},
"minItems": 1,
"maxItems": 2
},
"require_signed_response": {
"type": "boolean"
},
"sign_requests": {
"type": "boolean"
},
"subject_source": {
"enum": [
"persistent_name_id",
"attribute"
]
},
"subject_attribute": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"attribute_mapping": {
"type": "object",
"properties": {
"email": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"groups": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [],
"additionalProperties": false
}
},
"required": [],
"additionalProperties": false
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
}
},
"required": [
"type",
"label",
"configuration",
"request_id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "oidc"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"configuration": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"authorization_endpoint": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"token_endpoint": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"jwks_uri": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"client_id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"token_endpoint_auth_method": {
"enum": [
"client_secret_basic",
"client_secret_post"
]
},
"id_token_alg": {
"const": "RS256"
},
"attribute_mapping": {
"type": "object",
"properties": {
"email": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"groups": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [],
"additionalProperties": false
},
"client_secret": {
"type": "string",
"minLength": 1,
"maxLength": 4096,
"writeOnly": true
}
},
"required": [],
"additionalProperties": false
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
}
},
"required": [
"type",
"label",
"configuration",
"request_id"
],
"additionalProperties": false
}
]
}{
"$ref": "#/components/schemas/EnterpriseConnection"
}GET/v1/sso/organizations/{organization}/connections/{connection_id}
sso connections get
Exact application and customer organization scope. Configuration reads never return client secrets. Disabled unless enterprise_sso is enabled.
- Scopes
- sso:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/EnterpriseConnection"
}PATCH/v1/sso/organizations/{organization}/connections/{connection_id}
sso connections update
Merge supplied provider settings; omitted client secret is preserved. Every edit returns to draft and invalidates previous tests and pending attempts. Once supplied, issuer and SAML subject source are immutable. Changing credentials or protocol settings on a previously enabled connection also requires sso:admin. Use the current version and a new request ID.
- Scopes
- sso:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"configuration": {
"$ref": "#/components/schemas/EnterpriseConfigurationInput"
},
"version": {
"type": "integer",
"minimum": 0
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
}
},
"required": [
"label",
"configuration",
"version",
"request_id"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EnterpriseConnection"
}POST/v1/sso/organizations/{organization}/connections/{connection_id}/discovery
sso connections discovery
Fetch discovery only for the saved exact OIDC issuer, with public HTTPS and supported code-flow validation. Returns proposed endpoints for review; it never updates the connection. Save reviewed settings through the versioned update operation. At most five discovery requests per connection per minute.
- Scopes
- sso:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
}
},
"required": [
"version"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"configuration": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"authorization_endpoint": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"token_endpoint": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"jwks_uri": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
}
},
"required": [
"issuer",
"authorization_endpoint",
"token_endpoint",
"jwks_uri"
],
"additionalProperties": true
}
},
"required": [
"version",
"configuration"
],
"additionalProperties": true
}POST/v1/sso/organizations/{organization}/connections/{connection_id}/test
sso connections test
Create a one-use setup-test browser link for the current connection version. This begins provider verification; it does not mark a test successful or enable login. The bearer link expires in five minutes and must be opened by the person testing sign-in. Do not log or expose through general automation tools.
- Scopes
- sso:write
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
}
},
"required": [
"version"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"pattern": "^[hH][tT][tT][pP][sS]://"
},
"expires_at": {
"type": "integer"
}
},
"required": [
"url",
"expires_at"
],
"additionalProperties": true
}POST/v1/sso/organizations/{organization}/connections/{connection_id}/enable
sso connections enable
Enable only after a successful protocol test of this exact configuration in the last 24 hours. Testing does not itself enable login. Requires the current version and explicit confirmation.
- Scopes
- sso:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"confirm": {
"const": true
}
},
"required": [
"version",
"request_id",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EnterpriseConnection"
}POST/v1/sso/organizations/{organization}/connections/{connection_id}/disable
sso connections disable
Disable the connection and invalidate current test receipts and pending attempts. Existing external application sessions are outside this operation. Requires the current version and explicit confirmation.
- Scopes
- sso:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"confirm": {
"const": true
}
},
"required": [
"version",
"request_id",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EnterpriseConnection"
}GET/v1/sso/organizations/{organization}/connections/{connection_id}/policy
sso policy get
Scoped to the application identified by the server API key.
- Scopes
- sso:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/EnterprisePolicy"
}PATCH/v1/sso/organizations/{organization}/connections/{connection_id}/policy
sso policy update
Explicitly confirm scoped provider trust: JIT, trusted email, exact MFA evidence and existing organization roles. Trust expansion needs a successful current-configuration test within 24 hours. Omitted settings are preserved. Claims never become global identity credentials or contacts. Role mapping changes reconcile at the next provider sign-in; this is not directory sync.
- Scopes
- sso:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
},
{
"name": "connection_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"settings": {
"type": "object",
"properties": {
"jit": {
"type": "boolean"
},
"trust_email": {
"type": "boolean"
},
"oidc_mfa_amr": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"minItems": 1,
"maxItems": 8
},
"maxItems": 8
},
"oidc_mfa_acr": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"maxItems": 8
},
"saml_mfa_context": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"maxItems": 8
},
"role_mappings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"role_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"minItems": 1,
"maxItems": 10
}
},
"required": [
"group",
"role_ids"
],
"additionalProperties": false
},
"maxItems": 20
}
},
"required": [],
"additionalProperties": false
},
"version": {
"type": "integer",
"minimum": 0
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"confirm": {
"const": true
}
},
"required": [
"settings",
"version",
"request_id",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EnterprisePolicy"
}GET/v1/sso/organizations/{organization}/requirement
sso requirement get
Scoped to the application identified by the server API key.
- Scopes
- sso:read
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"$ref": "#/components/schemas/EnterpriseRequirement"
}PUT/v1/sso/organizations/{organization}/requirement
sso requirement update
Apply a human-confirmed fresh impact preview. Invalidates this organization’s sessions; requiring SSO also invalidates global-derived application sessions and blocks omitted organization context for this application. Disabling a connection never relaxes this policy. Relaxation does not revive revoked sessions. On stale_preview obtain a fresh preview and confirmation. External application sessions and offline assertions have separate revocation limits.
- Scopes
- sso:admin
- Operation
- Changes application data
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"required": {
"type": "boolean"
},
"version": {
"type": "integer",
"minimum": 0
},
"request_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"confirmation": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"confirm": {
"const": true
}
},
"required": [
"connection_id",
"required",
"version",
"request_id",
"confirmation",
"confirm"
],
"additionalProperties": false
}{
"$ref": "#/components/schemas/EnterpriseRequirement"
}POST/v1/sso/organizations/{organization}/requirement/preview
sso requirement preview
Preview active session invalidation and unscoped sign-in impact. Confirmation is bound to this administrator key, exact scope, connection and policy versions, current impact and a maximum five-minute expiry. Requiring SSO needs an enabled connection with a current successful test. Protect the confirmation; do not log it or expose it to general automation.
- Scopes
- sso:admin
- Operation
- Read-only
[
{
"name": "organization",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
}
}
]{
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"required": {
"type": "boolean"
}
},
"required": [
"connection_id",
"required"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"current": {
"$ref": "#/components/schemas/EnterpriseRequirement"
},
"proposed": {
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"required": {
"type": "boolean"
}
},
"required": [
"connection_id",
"required"
],
"additionalProperties": false
},
"impact": {
"type": "object",
"properties": {
"application_sessions": {
"type": "integer"
},
"organization_sessions": {
"type": "integer"
},
"unscoped_sign_in_blocked": {
"type": "boolean"
}
},
"required": [
"application_sessions",
"organization_sessions",
"unscoped_sign_in_blocked"
],
"additionalProperties": true
},
"expires_at": {
"type": "integer"
},
"confirmation": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"required": [
"current",
"proposed",
"impact",
"expires_at",
"confirmation"
],
"additionalProperties": true
}POST/v1/sso/discover
sso discover
Server-only email-domain routing within this application and any key organization restriction. Returns enabled connections for a currently verified exact organization domain, limited to its required connection when enforced. Unknown, unverified, expired or unavailable routing returns the same empty data list. No account lookup, identity linking, enrollment or login occurs. Email is not persisted; no caller-supplied redirect is accepted. Limit 30 requests per key per minute. Keep per-user enumeration controls on your own backend; only later protocol verification establishes identity.
- Scopes
- sso:read
- Operation
- Read-only
{
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 254
}
},
"required": [
"email"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"organization_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"connection_id": {
"type": "string",
"pattern": "^[a-z0-9_-]{8,100}$"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^(?=.*\\S)[^<>\\x00-\\x1f\\x7f]+$"
},
"type": {
"enum": [
"saml",
"oidc"
]
}
},
"required": [
"organization_id",
"connection_id",
"label",
"type"
],
"additionalProperties": true
},
"maxItems": 10
}
},
"required": [
"data"
],
"additionalProperties": true
}