clauth github ↗ Get started

Docs / API

Clauth API reference

Manage people, organizations, access profiles and apps from scripts and servers. Everything the admin console does goes through the same rules here. Generated from the server's own OpenAPI file — download openapi.json or read it live from your server at /api/v1/openapi.json.

Authentication

Every call except health and the OpenAPI file needs a Bearer token. There are two kinds:

API clients (servers, scripts, integrations)

An organization owner or admin creates one under Organizations › API clients and ticks its scopes. The secret is shown once. A client acts as the person who created it, sees only its own organization, and stops working if that person no longer runs it. Clauth owners can also make platform clients that reach every organization.

# 1. a 15-minute token
curl -s https://auth.example.com/oauth/token -d grant_type=client_credentials \
  -d client_id=$CLIENT_ID -d client_secret=$CLIENT_SECRET -d "scope=users:read access:write"
# 2. call the API
curl -s https://auth.example.com/api/v1/capabilities -H "Authorization: Bearer $TOKEN"

Personal API tokens (you, from a script or CLI)

Make one in My account › API tokens (7, 30 or 90 days). It acts as you and can never do more than you can in the console; if you lose a role, your tokens lose it too. Tokens that manage other people need 2-step verification on your account. Only personal tokens can call /me.

ScopeAllows
users:readLook up users (machine-to-machine)
users:writeManage people: invite, update, lock, disable (API)
orgs:readRead organizations and members (API)
orgs:writeAdd and remove members (API)
apps:readRead apps, roles and permissions (API)
apps:writeSync manifests, rotate and revoke app clients (API)
access:readRead grants, access profiles and who has what (API)
access:writeChange access profiles and people's access (API)
audit:readRead the audit log (API)
connections:readRead sign-in providers, SMS gateway and email senders (API)
connections:writeAdd and change sign-in providers, SMS gateway and email senders (API)
agents:readRead the organization’s agents (API)
agents:writeCreate agents, give them roles, rotate their secrets (API)
config:readExport an organization’s setup; read variables (API)
config:writeImport a setup; set variables and secrets (API)
authzenAsk "can this person do X in this app?" (AuthZEN access evaluation)
scimProvision people and groups with SCIM 2.0 (HR systems, Google Workspace, Entra, Okta)
settings:readRead platform settings (API, platform clients only)
settings:writeChange platform settings (API, platform clients only)
me:read / me:writeYour own account (personal tokens only)

Conventions

  • IDs you can read. People by usr_… id or email, organizations by slug, apps by key, roles and access profiles by key.
  • Lists return {"data": […], "next_cursor": "…"}. Send ?limit= (up to 200) and ?cursor= for the next page.
  • Safe retries. Send an Idempotency-Key header on POST: the same key within 24 hours returns the first answer instead of doing the work twice.
  • No lost updates. Single resources send an ETag. Send it back as If-Match on PATCH, PUT or DELETE and you get 412 if someone changed it in the meantime.
  • Rate limits per client: 600 reads and 120 writes a minute by default, shown in RateLimit-* headers.
  • Audit. Every change is in the audit log as api, with the client and the person it acts for.
  • Other records are invisible. Anything outside your organization answers 404, never 403, so its existence never leaks.

Errors

Errors are RFC 9457 problem details (application/problem+json). errors lists field problems on a 422. Quote request_id when asking for help.

{ "type": "https://helloclauth.com/docs/api/#error-missing-scope", "title": "Missing scope", "status": 403,
  "detail": "This call needs the users:write scope.", "request_id": "01K…" }
StatusTitleWhat to do
401Invalid tokenGet a new token; check it is sent as Authorization: Bearer.
401Not an API clientUse an API client or a personal token, not an app's own client.
403Missing scopeAsk for the scope when requesting the token (the client must be allowed it).
403Personal token needed/me works with personal API tokens only.
403Client owner lost accessThe person who created the client no longer runs the organization: create a new client.
403Organization suspendedRead-only until Clauth restores the organization.
403ForbiddenThe rule in detail applies (for example Owner-tier roles need an organization owner).
404Not foundIt does not exist or is outside your organization.
405Method not allowedCheck the method in this reference.
409ConflictThe current state does not allow it (detail says why).
409Request in progressA request with the same Idempotency-Key is still running: wait and retry.
412Changed since readRead it again (new ETag) and retry.
422Invalid requestFix the fields listed in errors.
422UnprocessableThe request is valid JSON but breaks a rule (detail says which).
422Idempotency key reusedUse a new Idempotency-Key for a different request body.
429Too many requestsWait for Retry-After seconds.
429Limit reachedAn organization limit (people, apps, invites a day…) was hit.
500Server errorRetry later; quote request_id.

SCIM provisioning

Let an HR system or identity provider (Google Workspace, Microsoft Entra ID, Okta) keep an organization's people in step. In Organizations › API clients, choose Make SCIM token and paste the base URL and token into the provider. The token works for a year; making a new one turns the old one off.

EndpointWhat it does
GET /scim/v2/ServiceProviderConfig, /Schemas, /ResourceTypesDiscovery
GET|POST /scim/v2/UsersList (filter userName eq "…", externalId eq "…") or add a person. New people get an invite email; someone who already has a Clauth account is linked, not duplicated.
GET|PUT|PATCH|DELETE /scim/v2/Users/{id}active: false keeps the membership but removes all access in the organization. DELETE removes the person from this organization only.
GET|POST /scim/v2/Groups, …/Groups/{id}Groups are access profiles. Adding someone to a group gives them the roles the profile maps to in every app.

Teams and profile fields travel in the extension urn:ietf:params:scim:schemas:extension:clauth:2.0:User as {"teams": ["ayala"], "fields": {"employee_no": "E-17"}}. A person's email and name only change through SCIM when this is their only organization. Errors use SCIM's own format. Not supported yet: bulk, sorting, .search, /Me.

AuthZEN — "can this person do X?"

An app's server can ask Clauth directly instead of reading the token, using AuthZEN 1.0. Get a client-credentials token with the authzen scope from the app's own server client (it can only ask about its own app) or from an API client (people in its organization only). Discovery: /.well-known/authzen-configuration.

POST /access/v1/evaluation
{ "subject": { "type": "user", "id": "usr_01K…" },
  "action": { "name": "expense.approve" },             // or "role:finance"
  "resource": { "type": "app", "id": "xpenses", "properties": { "org": "acme" } } }
→ { "decision": true, "context": { "orgs": ["acme"] } }

POST /access/v1/evaluations answers up to 100 questions at once, with deny_on_first_deny or permit_on_first_permit if you want it to stop early. POST /access/v1/search/action lists every permission the person has in the app. The answers come from the same grants that tokens carry, so they always agree. Leave out org and any of the person's organizations counts.

Connection settings

The config object of POST /connections, by type. Secrets are write-only: reads show ••••••, and a PATCH that leaves a secret out keeps it. Register the callback_url from the response with the provider.

TypeOwnerconfig
oidcorg or platformissuer, client_id, client_secret, scopes; org: domains [list], jit (create accounts for new people from those domains), require (those people must use it); show_button
oauthorg or platformauthorize_url, token_url, userinfo_url, client_id, client_secret, scopes, id_field / email_field / name_field (dot paths), trust_email; org: as OIDC
metaplatformFacebook client_id (App ID), client_secret, show_button. Never links by email: people link Facebook from My account first.
smsplatformdriver semaphore | twilio | vonage, api_key, api_secret, sender
email-smtporghost, port, encryption tls | ssl, username, password, from_address, from_name — the organization's invites go out through it

An organization's provider only signs in people who belong to that organization alone (or new people from its domains with jit), so it can never take over someone who also works elsewhere.

JavaScript SDK

@clauth/js signs people in from a browser app (PKCE, state and nonce checks, one renewal across tabs) and @clauth/react wraps it for React. @clauth/react-native drives your own sign-in screens over POST /flow/execute; @clauth/node verifies tokens in your API (JWKS, Express middleware, permission checks, AuthZEN). Source: sdk/ in the Clauth repository.

import { createClauth } from '@clauth/js'
const clauth = createClauth({ issuer: 'https://auth.example.com', clientId: '…', redirectUri: 'https://app.example.com/callback' })
await clauth.signIn()            // → Clauth
await clauth.handleRedirect()    // on /callback
clauth.can('expense.approve', 'acme')
await clauth.fetch('/api/expenses') // Bearer token, renewed when needed

Meta

GET/capabilitiesany API token

What this token may do (display only)

GET/openapi.jsonno token

This document

Users

GET/usersusers:read

List people (filters: status, org, app, q)

GET/users/{user}any API token

One person with orgs, grants, profiles and sign-in methods ({user} = usr_ id or email)

PATCH/users/{user}users:write

Change name or phone (email: platform clients only)

name
string
phone
string|null
email
string (platform only)
DELETE/users/{user}users:write

Delete an account everywhere (platform only; frees the email, keeps an anonymised row)

POST/users/{user}/{action}users:write

disable | enable | unlock | reset-two-step | two-step-exempt | two-step-required | sign-out | password-reset

Invites

GET/invitesusers:read

List invites (filters: status, org)

POST/invitesusers:write

Invite someone into an organization; returns the invite link

email
string
name
string
org
slug
profiles
profile keys
apps
{app_key: role_key}
teams
team keys
fields
{key: value}
require_two_step
bool
org_role
member|developer|admin
send
bool (default true)
DELETE/invites/{invite}users:write

Revoke a pending invite

POST/invites/{invite}/resendusers:write

New link (the old one stops working) and email

send
bool (default true)

Organizations

GET/orgsorgs:read

Organizations this client can see

GET/orgs/{org}orgs:read

One organization ({org} = id or slug)

GET/orgs/{org}/brandingorgs:read

Branding: allowed and chosen level, account name, color, logo, support and legal links

PATCH/orgs/{org}/brandingorgs:write

Change the branding (up to the allowed level; `allowed` itself only for Clauth platform clients)

mode
clauth|cobrand|whitelabel
account_name
string
color
#RRGGBB
support_email
email
privacy_url
https URL
terms_url
https URL
allowed
clauth|cobrand|whitelabel (platform only)
GET/orgs/{org}/membersorgs:read

Members of the organization

PUT/orgs/{org}/members/{user}orgs:write

Add an existing person (email or usr_ id) or change their org role

role
member|developer|admin|owner
DELETE/orgs/{org}/members/{user}orgs:write

Remove from the organization (their profiles, exceptions and grants there go too)

Sign-in

POST/flow/executeno token

App-native sign-in, one step at a time (no token; public client + PKCE). Start with client_id, redirect_uri, code_challenge, scope; then send flow_id + action: identify (email) → password | send_code (via) → code → totp | send_sms → sms → done (an authorization code for /oauth/token). step "browser" gives a URL when only the browser can continue.

flow_id
from the previous answer
client_id
always
action
identify|password|send_code|code|totp|send_sms|sms
email
identify
password
password
via
email|sms
code
code / totp / sms
redirect_uri
start
code_challenge
start (S256)
scope
start
state
start
nonce
start

Sign-in rules

GET/apps/{app}/policyapps:read

Sign-in rules of an app: rules in force, where they come from, version

PUT/apps/{app}/policyapps:write

Replace the rules (new version)

password
bool
google
bool
connections
"all" or keys
email_code
bool
sms_code
bool
two_step
default|always
sms_second_step
bool
registration
invite|open (apps)
open_domains
domains
open_profile
profile key
check
http connection key
check_fail_open
bool
DELETE/apps/{app}/policyapps:write

Remove these rules so the next level applies

POST/apps/{app}/policy/restoreapps:write

Restore a saved version (as a new version)

version
int
GET/apps/{app}/policy/versionsapps:read

Saved versions of these rules

GET/orgs/{org}/policyorgs:read

Sign-in rules of an organization (default for its apps): rules in force, where they come from, version

PUT/orgs/{org}/policyorgs:write

Replace the rules (new version)

password
bool
google
bool
connections
"all" or keys
email_code
bool
sms_code
bool
two_step
default|always
sms_second_step
bool
registration
invite|open (apps)
open_domains
domains
open_profile
profile key
check
http connection key
check_fail_open
bool
DELETE/orgs/{org}/policyorgs:write

Remove these rules so the next level applies

POST/orgs/{org}/policy/restoreorgs:write

Restore a saved version (as a new version)

version
int
GET/orgs/{org}/policy/versionsorgs:read

Saved versions of these rules

GET/policysettings:read

Sign-in rules of the platform: rules in force, where they come from, version

PUT/policysettings:write

Replace the rules (new version)

password
bool
google
bool
connections
"all" or keys
email_code
bool
sms_code
bool
two_step
default|always
sms_second_step
bool
registration
invite|open (apps)
open_domains
domains
open_profile
profile key
check
http connection key
check_fail_open
bool
DELETE/policysettings:write

Remove these rules so the next level applies

POST/policy/restoresettings:write

Restore a saved version (as a new version)

version
int
GET/policy/versionssettings:read

Saved versions of these rules

Teams & fields

GET/orgs/{org}/fieldsorgs:read

Profile fields the organization keeps about its people

POST/orgs/{org}/fieldsorgs:write

Add a profile field

key
string
label
string
type
string|number|bool|date|enum
options
choices (enum)
required
bool
editable_by
admin|self
in_token
bool (send to apps)
PATCH/orgs/{org}/fields/{field}orgs:write

Change a field (key and type are fixed)

label
string
options
choices
required
bool
editable_by
admin|self
in_token
bool
DELETE/orgs/{org}/fields/{field}orgs:write

Delete a field and its values

GET/orgs/{org}/members/{user}/profileorgs:read

A member's teams and field values (and missing required fields)

PATCH/orgs/{org}/members/{user}/profileorgs:write

Set a member's teams (exact list) and field values

teams
team keys
fields
{key: value|null}
GET/orgs/{org}/teamsorgs:read

Teams (stores, branches, departments) of the organization

POST/orgs/{org}/teamsorgs:write

Add a team (its key is fixed; apps see it in tokens)

name
string
key
string
description
string
GET/orgs/{org}/teams/{team}orgs:read

One team with its people

PATCH/orgs/{org}/teams/{team}orgs:write

Rename a team

name
string
description
string
DELETE/orgs/{org}/teams/{team}orgs:write

Delete a team

PUT/orgs/{org}/teams/{team}/members/{user}orgs:write

Put a member in the team

DELETE/orgs/{org}/teams/{team}/members/{user}orgs:write

Take a member out of the team

Access

GET/grantsaccess:read

Effective grants tokens are built from (filters: org, app, user)

GET/orgs/{org}/alignmentaccess:read

Who has what: people × apps (?format=csv)

GET/orgs/{org}/members/{user}/accessaccess:read

What the person gets in each app and why

PUT/orgs/{org}/members/{user}/accessaccess:write

Set profiles (exact list) and per-app exceptions, then work out grants

profiles
profile keys
apps
{app_key: "profile"|"none"|role_key}
reason
string
GET/orgs/{org}/profilesaccess:read

Access profiles with their app roles and people

POST/orgs/{org}/profilesaccess:write

Create an access profile

name
string
key
string
description
string
apps
{app_key: role_key|"none"}
GET/orgs/{org}/profiles/{profile}access:read

One access profile ({profile} = key)

PATCH/orgs/{org}/profiles/{profile}access:write

Rename or change the role per app (null = not set)

name
string
description
string
apps
{app_key: role_key|"none"|null}
DELETE/orgs/{org}/profiles/{profile}access:write

Delete; holders lose what only this profile gave them

PUT/orgs/{org}/profiles/{profile}/people/{user}access:write

Give the profile to a member

DELETE/orgs/{org}/profiles/{profile}/people/{user}access:write

Take the profile away

Connections

GET/connectionsconnections:read

Sign-in providers, SMS gateway and email senders (secrets masked; filter: org)

POST/connectionsconnections:write

Add a connection: oidc, oauth (org or platform), meta, sms (platform), email-smtp (org)

type
oidc|oauth|meta|sms|email-smtp
name
button label
org
slug (omit = platform)
config
issuer, client_id, client_secret, domains, jit, require… (see docs)
GET/connections/{key}connections:read

One connection, with the redirect URL to register at the provider

PATCH/connections/{key}connections:write

Change name, status or config (secrets: leave out to keep)

name
string
status
active|disabled
config
object
DELETE/connections/{key}connections:write

Delete a connection

Themes

GET/themesapps:read

Built-in styles and designed sign-in themes you can use

POST/themesapps:write

Design a theme

name
string
org
slug (omit = platform)
base
classic|daylight|midnight|auto
accent
#rrggbb
background
#rrggbb
card
#rrggbb
font
Inter|Manrope|Poppins|…
heading_font
font
radius
0–28
buttons
rounded|pill|square
layout
center|split
tagline
string
GET/themes/resolveapps:read

What a sign-in page will look like (?app=, ?domain=): computed colors, fonts, layout

GET/themes/{key}apps:read

One designed theme

PATCH/themes/{key}apps:write

Change a theme (apps using it change too)

name
string
…
any setting
DELETE/themes/{key}apps:write

Delete a theme (its apps go back to their built-in style)

GET/themes/{key}/usagesapps:read

Apps and domains using the theme

Languages & messages

GET/languagesany API token

Languages of the sign-in pages and emails

GET/languages/{lang}/translationsany API token

The wording in one language (built-in + your changes)

PUT/languages/{lang}/translationssettings:write

Change wording: {"English text": "your text" | null} (platform only)

<English text>
your text, or null to undo
GET/templatesorgs:read

Message templates (?org=): invite, login_code, new_device, lockout (email), sms_code (text)

PUT/templates/{key}orgs:write

Write a message (an organization: its invite; the platform: all)

org
slug (omit = platform)
locale
en|fil
subject
email subject
body
plain text with {{placeholders}}
DELETE/templates/{key}orgs:write

Go back to the built-in message

org
slug
locale
en|fil

Agents

GET/agents/{agent}agents:read

One agent ({agent} = agt_ id)

PATCH/agents/{agent}agents:write

Rename, or suspend / resume (status)

name
string
description
string
status
active|suspended
DELETE/agents/{agent}agents:write

Delete the agent and revoke its tokens

PUT/agents/{agent}/accessagents:write

An organization agent’s role per app (null = none)

apps
{app_key: role_key|null}
POST/agents/{agent}/secretagents:write

New credentials (the old ones stop working)

GET/orgs/{org}/agentsagents:read

The organization’s agents (AI assistants, bots, scripts)

POST/orgs/{org}/agentsagents:write

Create an agent; the response has client_id and client_secret (shown once). It gets tokens with client credentials + audience=<app key>

name
string
description
string
apps
{app_key: role_key}

Config

GET/exportconfig:read

An organization’s setup as one JSON document (?org=): teams, fields, profiles, sign-in rules, its apps’ roles and look, themes, messages, connections (secrets as ${secret:NAME})

POST/importconfig:write

Import a document into an organization. dry_run (default true) lists what would change; dry_run=false applies it

org
slug
document
an export
dry_run
bool
GET/secretsconfig:read

Secret names (?org=); values are never shown

PUT/secrets/{name}config:write

Set a secret (${secret:NAME} in imports), stored encrypted

value
string
org
slug (omit = platform)
DELETE/secrets/{name}config:write

Delete a secret

org
slug
GET/variablesconfig:read

Variables (?org=)

PUT/variables/{name}config:write

Set a variable (${var:NAME} in imports)

value
string
org
slug (omit = platform)
DELETE/variables/{name}config:write

Delete a variable

org
slug

Apps

GET/appsapps:read

Apps published by or installed in this client's organization

POST/appsapps:write

Register an app (+ its first client; the secret is in this response only)

name
string
key
string
type
web|public|m2m
redirect_uri
url
home_url
url
publisher
org slug (personal/platform tokens)
orgs
org slugs to install in
privacy_url
url
terms_url
url
support_email
email
GET/apps/{app}apps:read

One app with roles, permissions and (publisher only) clients

PATCH/apps/{app}apps:write

Change app settings (If-Match supported)

name
string
home_url
url
manifest_url
url
status
live|paused|not_connected
color
#rrggbb
visibility
private|installable
require_mfa_roles
role keys
DELETE/apps/{app}apps:write

Delete the app (owners/admins of the publisher; send confirm = app key)

confirm
the app key
GET/apps/{app}/authorization-detail-typesapps:read

Types the app accepts in authorization_details (RFC 9396)

PUT/apps/{app}/authorization-detail-types/{type}apps:write

Register a type with its JSON Schema and optional processor (your server confirms or fills in)

description
shown to the person
schema
JSON Schema (object)
processor_url
https URL
processor_secret
HMAC secret
DELETE/apps/{app}/authorization-detail-types/{type}apps:write

Remove a type

POST/apps/{app}/brandingapps:write

Same as PUT (for multipart uploads from tools that only POST)

PUT/apps/{app}/brandingapps:write

Sign-in page look (JSON or multipart with logo files)

login_theme
classic|daylight|midnight|auto
theme
designed theme key (instead of login_theme)
accent_color
#rrggbb
logo
png/svg file
logo_dark
png/svg file
remove_logo
bool
POST/apps/{app}/clientsapps:write

Add a client (secret shown once), or one described by a client ID metadata document (cimd_url)

type
web|public|m2m|device
name
string
redirect_uri
url
cimd_url
https URL of a client metadata document
PATCH/apps/{app}/clients/{client}apps:write

Change a client's name or redirect URLs

name
string
redirect_uris
urls
post_logout_redirect_uris
urls
POST/apps/{app}/clients/{client}/revokeapps:write

Turn a client off and revoke its tokens

POST/apps/{app}/clients/{client}/rotateapps:write

New client secret (shown once)

GET/apps/{app}/installationsapps:write

Organizations the app is installed in or requested by

POST/apps/{app}/installationsapps:write

Install in an organization you run, or request it elsewhere

org
slug
DELETE/apps/{app}/installations/{org}apps:write

Remove from an organization (its access there goes)

POST/apps/{app}/manifest/syncapps:write

Fetch /.well-known/clauth.json and apply it

POST/apps/{app}/registration-tokensapps:write

Initial access token for dynamic client registration (RFC 7591) at /oauth/register into this app; shown once

name
string
uses
int
days
int (default 30)
GET/cimd/previewapps:read

Read a client ID metadata document (?url=) before registering it

Roles

POST/apps/{app}/permissionsapps:write

Add a permission by hand

key
string
description
string
POST/apps/{app}/rolesapps:write

Add a role

key
string
name
string
description
string
tier
owner|admin|member|viewer
PATCH/apps/{app}/roles/{role}apps:write

Change a role (manifest roles: tier only)

name
string
description
string
tier
owner|admin|member|viewer
aliases
old keys
assignable
bool
DELETE/apps/{app}/roles/{role}apps:write

Delete a role nobody holds

PUT/apps/{app}/roles/{role}/permissionsapps:write

Set the exact permissions of a role

permissions
permission keys

Domains

GET/apps/{app}/domainapps:write

The app's sign-in domain, status and DNS records

POST/apps/{app}/domainapps:write

Add a sign-in domain (or share one the publisher verified)

host
auth.example.com
share
bool
PATCH/apps/{app}/domainapps:write

Display name, theme (trusted: Clauth owners)

display_name
string
theme
designed theme key or null
trusted
bool
DELETE/apps/{app}/domainapps:write

Stop using the domain (last app out deletes it)

POST/apps/{app}/domain/checkapps:write

Check DNS and certificate now

Me

GET/mepersonal token

Your account (personal token)

PATCH/mepersonal token

Change your name or phone

name
string
phone
string
GET/me/agentspersonal token

Your own agents (they act for you, never with more access than you)

POST/me/agentspersonal token

Create your own agent in one of your organizations

name
string
org
slug
description
string
PATCH/me/agents/{agent}personal token

Rename, suspend or resume your agent

name
string
status
active|suspended
DELETE/me/agents/{agent}personal token

Delete your agent

POST/me/agents/{agent}/secretpersonal token

New credentials for your agent

GET/me/appspersonal token

Apps you can open, with your roles

GET/me/consentspersonal token

Outside apps you allowed to receive your details

DELETE/me/consents/{app}personal token

Take that permission back

GET/me/orgs/{org}/profilepersonal token

Your teams and fields in one organization

PATCH/me/orgs/{org}/profilepersonal token

Change the fields the organization lets you edit

fields
{key: value}
GET/me/sessionspersonal token

Browsers and apps you are signed in to

DELETE/me/sessions/{id}personal token

Sign out one browser (web_…) or app (app_…)

Audit

GET/auditaudit:read

Audit log (filters: category, event, org, user, since, until)

Settings

GET/settingssettings:read

Platform settings (platform clients only)

PATCH/settingssettings:write

Change platform settings (platform clients only)

require_mfa_everyone
bool
password_min_length
int
session_idle_hours
int
…
see GET /settings

Health

GET/health/liveno token

The service is up

GET/health/readyno token

Database, cache and signing key are ready

Webhooks

POST/apps/{app}/deliveries/{delivery}/redeliverapps:write

Send a delivery again

GET/apps/{app}/peopleany API token

Everyone with access to the app, with the orgs claim their token carries (?since= for changes). The app’s own server client (users:read) or an API client

GET/apps/{app}/webhooksapps:read

Webhook endpoints of the app

POST/apps/{app}/webhooksapps:write

Add an endpoint; the signing secret is in this response only

url
https URL
events
access.granted|access.changed|access.removed|user.updated|user.disabled|user.enabled|invite.accepted (empty = all)
PATCH/apps/{app}/webhooks/{id}apps:write

Change URL or events, switch off/on (on = resend recent failures), rotate the secret

url
https URL
events
list
status
active|disabled
rotate_secret
bool
DELETE/apps/{app}/webhooks/{id}apps:write

Remove an endpoint

GET/apps/{app}/webhooks/{id}/deliveriesapps:read

Recent deliveries (30 days; ?status=)

POST/apps/{app}/webhooks/{id}/testapps:write

Send a ping now and see the answer

Branding

GET/brandno token

Public: how an app names its sign-in (?app=<key> or ?client_id=<id>): level, account name, button text, logo, color, sign-in and account addresses

OAuth endpoints used with the API

EndpointUse
POST /oauth/tokenClient credentials for API clients
POST /oauth/introspectRFC 7662: is this token still active? Your own client's tokens, or another client of the same app
POST /oauth/revokeRevoke a token
POST /oauth/parRFC 9126: push the sign-in request first, then open /oauth/authorize?client_id=…&request_uri=… (90 s, one use)
POST /oauth/deviceRFC 8628 device sign-in for TVs, POS terminals and CLIs (client type "device"): show user_code, the person approves at /device, poll /oauth/token with grant_type=urn:ietf:params:oauth:grant-type:device_code
POST /oauth/bc-authorizeCIBA (poll): the app's web client asks for a person's OK (login_hint, binding_message); they approve on their phone; poll /oauth/token with grant_type=urn:openid:params:grant-type:ciba
POST /oauth/registerDynamic client registration (RFC 7591/7592) with an initial access token from POST /apps/{app}/registration-tokens; manage it at /oauth/register/{client_id}
POST /oauth/token + audienceAgents: client credentials with audience=<app key> give a token with sub=agt_…, the agent's roles, and act = its owner
authorization_detailsRFC 9396 on /oauth/authorize (or PAR): types registered per app with a JSON Schema; the person approves each item; a processor may refuse or fill in; approved items come back in the token response and access token
GET /.well-known/oauth-authorization-serverRFC 8414 server metadata (same as OpenID discovery)