Public API
AUMS exposes the users of your identity provider through a REST API under /api/v1, on the Business tier. Callers authenticate with bearer tokens issued by your own authorization server; AUMS never issues API tokens.
Set up
Section titled “Set up”-
Configure how AUMS validates tokens:
Terminal window # JWT access tokens, checked against the issuer's keysAPI_AUTH_MODE=jwtAPI_AUTH_ISSUER=https://auth.example.com/API_AUTH_AUDIENCE=https://api.aums.example.comAPI_AUTH_JWKS_URI=https://auth.example.com/.well-known/jwks.json# or opaque tokens, checked by token introspection (RFC 7662)API_AUTH_MODE=opaqueAPI_AUTH_ISSUER=https://auth.example.com/API_AUTH_INTROSPECTION_URL=https://auth.example.com/oauth2/introspectAPI_AUTH_INTROSPECTION_CLIENT_ID=aumsAPI_AUTH_INTROSPECTION_CLIENT_SECRET=... -
In Settings → API access, an organization admin grants a token subject (its
sub, orclient_idfor client credentials) access to the organization. A subject can be granted several organizations; one of them can be its default. -
Give the token the scopes it needs:
user:read,user:create,user:write,user:delete,user:support,user:credentials.The write scopes follow the permissions of the admin console: a token can be given just
user:supportto send password resets, sign users out and resend verification emails, without being able to edit or delete anyone.user:writeis accepted whereveruser:create,user:supportoruser:credentialsis required, so tokens issued before the split keep working; updating a user (PATCH) asks foruser:writeitself.
Routes
Section titled “Routes”The OpenAPI 3.1 document of these routes is served at GET /api/v1/openapi.json (no token needed). It lists what the active identity provider supports: its filters, sort fields and actions.
| Method | Route | Scope |
|---|---|---|
GET | /api/v1/organizations/{organizationId}/users | user:read |
POST | /api/v1/organizations/{organizationId}/users | user:create |
GET | /api/v1/organizations/{organizationId}/users/{id} | user:read |
PATCH | /api/v1/organizations/{organizationId}/users/{id} | user:write |
DELETE | /api/v1/organizations/{organizationId}/users/{id} | user:delete |
POST | /api/v1/organizations/{organizationId}/users/{id}/actions/{action} | user:support or user:credentials |
A user’s roles, sessions and metadata, and the provider’s organizations, have their own routes (each also under /organizations/{organizationId}/, and unprefixed for the default organization):
| Method | Route | Scope |
|---|---|---|
GET | /api/v1/users/{id}/roles | user:read |
PUT | /api/v1/users/{id}/roles | user:roles |
GET | /api/v1/users/{id}/sessions | user:read |
DELETE | /api/v1/users/{id}/sessions | user:support |
PUT | /api/v1/users/{id}/metadata/{bucket} | user:metadata |
GET, POST | /api/v1/idp-organizations | idp-organization:read, idp-organization:write |
GET, PATCH, DELETE | /api/v1/idp-organizations/{id} | idp-organization:read, :write, :delete |
GET, POST | /api/v1/idp-organizations/{id}/members | idp-organization:read, idp-organization:write |
DELETE | /api/v1/idp-organizations/{id}/members/{userId} | idp-organization:write |
PUT .../roles takes { "roleIds": [...] } and makes the user’s assignable roles exactly those; the roles outside the deployment’s and the organization’s allowlists are kept. PUT .../metadata/{bucket} takes the bucket’s JSON object and replaces it (appMetadata, userMetadata or customClaims, as the provider has them; the organization’s policy may restrict which). user:write is accepted wherever user:roles, user:support or user:metadata is required.
The provider’s organizations follow the console’s rules: an AUMS organization bound to an IdP organization sees that one only and cannot create, rename or delete organizations; while several AUMS organizations share an unscoped directory, changes are refused (403) and reads answer empty. With approvals on, DELETE answers 202 with a change request, as for users. Every change is audited as api:<subject> with the same actions as the console, and the OpenAPI document describes all of these routes.
With API_DEFAULT_ORGANIZATION_ENABLED=true, the same routes also answer without /organizations/{organizationId} (e.g. GET /api/v1/users), for the subject’s default organization.
Actions are revokeSessions, sendPasswordReset and sendVerificationEmail (scope user:support) and resetMfa (scope user:credentials), when your provider supports them; otherwise the API answers 501 not_supported.
Listing
Section titled “Listing”GET .../users takes limit (up to 100), cursor (the pagination.nextCursor of the previous page), and, when your provider supports them, q (search), sortBy + sortOrder, and the filters blocked, emailVerified, phoneVerified (true/false). A parameter the provider can’t honor is refused with 400 rather than ignored.
{ "data": [ { "id": "…", "email": "ada@example.com", "blocked": false, "…": "…" } ], "pagination": { "nextCursor": "eyJwYWdlIjoxfQ", "hasMore": true, "limit": 20, "total": 42 }}- Every change is in the admin audit trail, by
api:<subject>, with the names of the fields it changed (never their values). - A provider that can’t separate users by organization shows them to no API token while several organizations exist (reads answer empty or
404, writes are refused), as for organization roles in the UI. - With deletion approvals on,
DELETEanswers202 Acceptedwith a change request that waits for an admin under Approvals. Follow it withGET /api/v1/change-requests/{id}(or list yours withGET /api/v1/change-requests?status=pending); itsstatusbecomesapplied,failed,rejectedorexpired. - Requests are rate-limited per subject (120 per minute) and per client IP.
Errors share one shape: { "error": { "code", "message", "fields"?, "requestId" } }.