Workforce Identity API
Every endpoint of Workforce Identity on your realm's own host, by area, with what each one does and the page that covers it.
AvailableAPIRFC 6749, OpenID Connect Core 1.0, OpenID Shared Signals Framework 1.0
Every Workforce Identity endpoint is on your realm’s own host, https://foobar.cvyuh.com. Two kinds of caller use
them:
- A realm administrator, or a script acting as one, calls the addresses under
https://foobar.cvyuh.com/api/v0/amwith a session in thex-cvyuh-tokencookie. A user calls themeaddresses the same way, with their own session. How to get a session, and the conventions every call shares (paging, revisions, errors), are in Call the API. - Apps, services and agents call the addresses under
https://foobar.cvyuh.com/oauth2with their own credentials, as OAuth 2.0 and OpenID Connect say. The realm’s issuer ishttps://foobar.cvyuh.com/oauth2.
Objects and settings
Section titled “Objects and settings”Apps, agents, policies, entitlements, sign-in chains and every setting below are objects in the realm, read and
written at the same addresses. {type} is the object’s type, such as oauth2Client or agent; {id} is its id,
such as example-app. A setting is one object whose id is its type: oauth2Settings/oauth2Settings.
| Method | Endpoint | What it does | Page |
|---|---|---|---|
GET | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type} | List the objects of a type, a page at a time | Call the API |
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}?id={id} | Create an object with the id you choose | Register an app |
GET | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id} | Read an object, its revision in the ETag header | Call the API |
PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id} | Change the fields you send; a list you send replaces the whole list | Call the API |
PUT | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id} | Replace the whole object | Call the API |
DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id} | Delete an object | Call the API |
GET | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}/history | Every change to the object, newest first | Call the API |
GET, POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}/relationships/{link} | List, or make, an object’s links of one kind, such as an agent’s businessOwner | Register an agent |
DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}/relationships/{link}/{target} | Remove one link, by the target’s id | Let users remove agents |
A write may send the revision it read as If-Match: "<rev>", and is refused 412 if the object changed since.
Applications: administration
Section titled “Applications: administration”Base: https://foobar.cvyuh.com/api/v0/am, with the session cookie.
| Method | Endpoint | What it does | Page |
|---|---|---|---|
GET | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client | List the realm’s apps | Register an app |
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client?id={client id} | Register an app; its id is its client_id | Register an app |
GET, PATCH, PUT, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client/{client id} | Read, change, turn off (status) or remove an app | Register an app |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2Settings | The realm’s grants, scopes, client methods, lifetimes and user details | Realm OAuth settings |
POST | https://foobar.cvyuh.com/api/v0/am/clients/v1/{client id}/bootstrap | Mint a one-time bootstrap assertion for an agent’s client | Client authentication |
POST | https://foobar.cvyuh.com/api/v0/am/clients/v1/registration-tokens | Mint an initial access token a developer registers apps with | Dynamic registration |
DELETE | https://foobar.cvyuh.com/api/v0/am/clients/v1/registration-tokens/{id} | Revoke a registration token | Dynamic registration |
GET, POST, PATCH, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2TrustedIssuer/{id} | Partner servers whose identity assertions the realm accepts | Identity assertion grant |
GET, POST, PATCH, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/foreignIdentity/{id} | Links from a partner’s user to a user of the realm | Accept a partner’s identity |
GET, POST, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/baseUrl/baseUrl | One issuer for every host name | Share one sign-in across every host name |
GET, POST, PATCH, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2AssertionAudience/{id} | Partners the realm issues identity assertions for | Issuing identity assertions |
GET, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Consent/{id} | What a user allowed an app | Remember what users allowed |
GET | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps | The signed-in user’s connected apps | Consent |
DELETE | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps/{client id} | The user takes back what they allowed an app | Consent |
Applications: OAuth 2.0 and OpenID Connect
Section titled “Applications: OAuth 2.0 and OpenID Connect”The issuer is https://foobar.cvyuh.com/oauth2. Apps call these with their own credentials, as each standard says,
never a session. While the realm’s mtls is on, the token, introspection, revocation, pushed-request and userinfo
endpoints are also served at https://mtls.foobar.cvyuh.com/oauth2/....
| Method | Endpoint | What it does | Page |
|---|---|---|---|
GET | https://foobar.cvyuh.com/.well-known/oauth-authorization-server/oauth2 | Authorization server metadata | Discovery document |
GET | https://foobar.cvyuh.com/oauth2/.well-known/openid-configuration | OpenID configuration | Discovery document |
GET | https://foobar.cvyuh.com/oauth2/jwks | The realm’s public signing keys | Signing keys |
GET, POST | https://foobar.cvyuh.com/oauth2/authorize | Start a browser sign-in | Authorization code with PKCE |
GET | https://foobar.cvyuh.com/oauth2/authorize/resume | Where the browser returns after signing in, to finish the request | Authorization code with PKCE |
GET | https://foobar.cvyuh.com/oauth2/authorize/post | The page that posts the answer back to an app that asked for form_post | Signed request objects |
POST | https://foobar.cvyuh.com/oauth2/par | Push a sign-in request before the browser goes | Pushed authorization requests |
GET, POST | https://foobar.cvyuh.com/oauth2/consent | The consent page, and the user’s answer | Consent |
POST | https://foobar.cvyuh.com/oauth2/token | Issue tokens, for every grant | Access tokens |
GET, POST | https://foobar.cvyuh.com/oauth2/userinfo | The signed-in user’s details, for an access token | OpenID Connect sign-in |
POST | https://foobar.cvyuh.com/oauth2/introspect | Whether a token still stands, and what it holds | Introspection |
POST | https://foobar.cvyuh.com/oauth2/revoke | Revoke a token | Revoke tokens |
GET | https://foobar.cvyuh.com/oauth2/status/{list} | A token status list | Status lists |
GET, POST | https://foobar.cvyuh.com/oauth2/logout | Sign the user out, from an app | Logout |
GET, POST | https://foobar.cvyuh.com/oauth2/logout/confirm | The sign-out confirmation page, and the user’s answer | Logout |
GET | https://foobar.cvyuh.com/oauth2/pages | What the consent, sign-out and signed-out pages show | Logout |
POST | https://foobar.cvyuh.com/oauth2/device_authorization | A device asks for a code to show the user | Device authorization |
GET, POST | https://foobar.cvyuh.com/oauth2/device | The page where the user enters the device’s code | Device authorization |
POST | https://foobar.cvyuh.com/oauth2/authorize-challenge | Your own app signs a user in with its own screens | First-party app sign-in |
POST | https://foobar.cvyuh.com/oauth2/bc-authorize | An agent asks its owner to approve a request | Have an agent ask its owner |
POST | https://foobar.cvyuh.com/oauth2/register | A developer registers an app with a registration token | Dynamic registration |
Authentication
Section titled “Authentication”Base: https://foobar.cvyuh.com/api/v0/am. Every call carries the session cookie, except the sign-in itself.
| Method | Endpoint | What it does | Page |
|---|---|---|---|
POST | https://foobar.cvyuh.com/api/v0/am/auth/v1/authenticate | Start a sign-in, or answer its current page; ?service=<chain> names a chain | Sessions |
POST | https://foobar.cvyuh.com/api/v0/am/auth/v1/logout | End the session the cookie carries | Sessions |
POST | https://foobar.cvyuh.com/api/v0/am/auth/v1/landing | Where a browser that just signed in goes next: the returnTo path on this host, or null | Sign-in chains |
POST | https://foobar.cvyuh.com/api/v0/am/whoami/v1 | The signed-in user, their profile, roles and session | Who am I |
GET | https://foobar.cvyuh.com/api/v0/am/devices/v1 | The signed-in user’s passkeys, authenticator apps and recovery codes | Sign-in methods |
DELETE | https://foobar.cvyuh.com/api/v0/am/devices/v1/{id} | Remove one of the user’s passkeys or authenticator apps | Sign-in methods |
GET | https://foobar.cvyuh.com/api/v0/am/sessions/v1 | List the realm’s live sessions, with filter and paging | Session management |
POST | https://foobar.cvyuh.com/api/v0/am/sessions/v1/end | End sessions by names, or every session a qbe search matches | Session management |
DELETE | https://foobar.cvyuh.com/api/v0/am/sessions/v1/{id} | End one session | Session management |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/authSettings/authSettings | The realm’s sign-in methods, second-step rule, default chains and lockout | Sign-in methods, Lockout |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/sessionSettings/sessionSettings | How long sessions last, and how many one user holds | Sessions |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/webauthnSettings/webauthnSettings | The passkey domain and what a passkey ceremony asks for | Sign-in methods |
GET, POST, PATCH, DELETE | https://foobar.cvyuh.com/api/v0/am/objects/v1/authChain/{id} | Sign-in chains | Sign-in chains |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/{module type}/{instance} | One sign-in method’s settings, such as totpModule/totp | Sign-in modules |
GET, PUT | https://foobar.cvyuh.com/api/v0/am/types/v1/user | The user type, where password rules are declared | Password rules |
GET, PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/i18nBundle/i18nBundle | Sign-in and consent wording, per language | Pages in the user’s language |
Agents and workloads
Section titled “Agents and workloads”| Method | Endpoint | What it does | Page |
|---|---|---|---|
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/agent?id={id} | Register an agent | AI agents |
PATCH | https://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id} | Quarantine, release, kill or retire an agent, with status | Stop an agent |
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id}/relationships/businessOwner | Name the user accountable for the agent | Register an agent |
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id}/relationships/actsFor | Let the agent act for a user, within a window and a scope ceiling | Agents acting for users |
POST | https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client/{clientId}/relationships/agent | Link a client to the agent it authenticates for | Register an agent |
POST | https://foobar.cvyuh.com/api/v0/am/clients/v1/{clientId}/bootstrap | Mint a one-time bootstrap assertion for an agent’s first token | Register an agent |
POST | https://foobar.cvyuh.com/oauth2/bc-authorize | An agent asks its business owner to approve an action | Backchannel authentication |
GET | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvals | The requests waiting for the signed-in owner | Backchannel authentication |
POST | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvals/{id} | The owner’s answer, { "decision": "allow" } or { "decision": "deny" } | Backchannel authentication |
GET | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agents | The agents allowed to act for the signed-in user | Let users remove agents |
DELETE | https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agents/{agent} | Stop an agent acting for the user, and revoke its tokens in their name | Let users remove agents |
GET | https://foobar.cvyuh.com/api/v0/am/audit/v1/trail?agent={id} | One agent’s trail: tokens, exchanges, decisions and status changes | Follow what an agent did |
GET | https://foobar.cvyuh.com/api/v0/am/audit/v1/trail?person={id} | One user’s trail, with what agents did in their name | Follow what an agent did |
GET | https://foobar.cvyuh.com/api/v0/am/audit/v1/trail/me | The signed-in user’s own trail | Follow what an agent did |
An agent gets its tokens at https://foobar.cvyuh.com/oauth2/token, as any client does. Settings, at the
object addresses:
| Type | What it holds | Page |
|---|---|---|
agent | One agent: purpose, risk class, autonomy tier, status, owners and lineage | AI agents |
agentSettings | Agent key lifetimes, delegation depth, impersonation and guardrails by risk class | AI agents |
Authorization
Section titled “Authorization”| Type | What it holds | Page |
|---|---|---|
policy | One rule: who may take which actions on which resources, and when | Policies |
policySet | A group of policies an enforcement point asks for by name | Policies |
resourceType | A kind of resource policies can be about, its patterns and actions | Policies |
entitlement | A named bundle of scopes and structured permissions, granted through grants links | Entitlements |
authorizationSettings | The issuance and delegation policy sets, and which decisions go on the audit trail | Issuance policy |
Each is read and written at the object addresses: a policy is linked to its set and its type
through its policySet and resourceType links, and an entitlement is granted through a user’s, group’s or agent’s
grants link. The decision and export endpoints that enforcement points call, under
https://foobar.cvyuh.com/access/v1 and https://foobar.cvyuh.com/policies/v1, are in the
Gateway API.
Shared signals
Section titled “Shared signals”What a receiving system calls, with an access token carrying ssf.manage for https://foobar.cvyuh.com/ssf, and
what a provider pushes to:
| Method | Endpoint | What it does | Page |
|---|---|---|---|
GET | https://foobar.cvyuh.com/.well-known/ssf-configuration/oauth2 | What the realm sends, and where; 404 while ssfEnabled is off | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/stream | Make a stream | Send signals |
GET | https://foobar.cvyuh.com/oauth2/ssf/stream | Read one stream, by stream_id, or all of the caller’s | Send signals |
DELETE | https://foobar.cvyuh.com/oauth2/ssf/stream?stream_id={id} | Delete a stream | Send signals |
GET | https://foobar.cvyuh.com/oauth2/ssf/status?stream_id={id} | A stream’s status | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/status | Set a stream enabled, paused or disabled | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/subjects/add | Name a user or agent the stream cares about | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/subjects/remove | Stop naming one | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/verify | Send the stream a verification event | Send signals |
POST | https://foobar.cvyuh.com/oauth2/ssf/receive/{transmitter} | Where a provider you trust pushes its events | Receive signals |
Settings, at the object addresses: ssfEnabled in oauth2Settings turns the transmitter
on, and an ssfTransmitter registers a provider whose events the realm acts on
(Receive signals).