Skip to content

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.

  1. Configure how AUMS validates tokens:

    Terminal window
    # JWT access tokens, checked against the issuer's keys
    API_AUTH_MODE=jwt
    API_AUTH_ISSUER=https://auth.example.com/
    API_AUTH_AUDIENCE=https://api.aums.example.com
    API_AUTH_JWKS_URI=https://auth.example.com/.well-known/jwks.json
    # or opaque tokens, checked by token introspection (RFC 7662)
    API_AUTH_MODE=opaque
    API_AUTH_ISSUER=https://auth.example.com/
    API_AUTH_INTROSPECTION_URL=https://auth.example.com/oauth2/introspect
    API_AUTH_INTROSPECTION_CLIENT_ID=aums
    API_AUTH_INTROSPECTION_CLIENT_SECRET=...
  2. In Settings → API access, an organization admin grants a token subject (its sub, or client_id for client credentials) access to the organization. A subject can be granted several organizations; one of them can be its default.

  3. 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:support to send password resets, sign users out and resend verification emails, without being able to edit or delete anyone. user:write is accepted wherever user:create, user:support or user:credentials is required, so tokens issued before the split keep working; updating a user (PATCH) asks for user:write itself.

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.

MethodRouteScope
GET/api/v1/organizations/{organizationId}/usersuser:read
POST/api/v1/organizations/{organizationId}/usersuser: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):

MethodRouteScope
GET/api/v1/users/{id}/rolesuser:read
PUT/api/v1/users/{id}/rolesuser:roles
GET/api/v1/users/{id}/sessionsuser:read
DELETE/api/v1/users/{id}/sessionsuser:support
PUT/api/v1/users/{id}/metadata/{bucket}user:metadata
GET, POST/api/v1/idp-organizationsidp-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}/membersidp-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.

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, DELETE answers 202 Accepted with a change request that waits for an admin under Approvals. Follow it with GET /api/v1/change-requests/{id} (or list yours with GET /api/v1/change-requests?status=pending); its status becomes applied, failed, rejected or expired.
  • Requests are rate-limited per subject (120 per minute) and per client IP.

Errors share one shape: { "error": { "code", "message", "fields"?, "requestId" } }.