Skip to content
Workforce IdentityMarkdown

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/am with a session in the x-cvyuh-token cookie. A user calls the me addresses 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/oauth2 with their own credentials, as OAuth 2.0 and OpenID Connect say. The realm’s issuer is https://foobar.cvyuh.com/oauth2.

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.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}List the objects of a type, a page at a timeCall the API
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}?id={id}Create an object with the id you chooseRegister an app
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}Read an object, its revision in the ETag headerCall the API
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}Change the fields you send; a list you send replaces the whole listCall the API
PUThttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}Replace the whole objectCall the API
DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}Delete an objectCall the API
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}/historyEvery change to the object, newest firstCall the API
GET, POSThttps://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 businessOwnerRegister an agent
DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/{type}/{id}/relationships/{link}/{target}Remove one link, by the target’s idLet users remove agents

A write may send the revision it read as If-Match: "<rev>", and is refused 412 if the object changed since.

Base: https://foobar.cvyuh.com/api/v0/am, with the session cookie.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2ClientList the realm’s appsRegister an app
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client?id={client id}Register an app; its id is its client_idRegister an app
GET, PATCH, PUT, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client/{client id}Read, change, turn off (status) or remove an appRegister an app
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2SettingsThe realm’s grants, scopes, client methods, lifetimes and user detailsRealm OAuth settings
POSThttps://foobar.cvyuh.com/api/v0/am/clients/v1/{client id}/bootstrapMint a one-time bootstrap assertion for an agent’s clientClient authentication
POSThttps://foobar.cvyuh.com/api/v0/am/clients/v1/registration-tokensMint an initial access token a developer registers apps withDynamic registration
DELETEhttps://foobar.cvyuh.com/api/v0/am/clients/v1/registration-tokens/{id}Revoke a registration tokenDynamic registration
GET, POST, PATCH, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2TrustedIssuer/{id}Partner servers whose identity assertions the realm acceptsIdentity assertion grant
GET, POST, PATCH, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/foreignIdentity/{id}Links from a partner’s user to a user of the realmAccept a partner’s identity
GET, POST, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/baseUrl/baseUrlOne issuer for every host nameShare one sign-in across every host name
GET, POST, PATCH, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2AssertionAudience/{id}Partners the realm issues identity assertions forIssuing identity assertions
GET, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Consent/{id}What a user allowed an appRemember what users allowed
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/appsThe signed-in user’s connected appsConsent
DELETEhttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps/{client id}The user takes back what they allowed an appConsent

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/....

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/.well-known/oauth-authorization-server/oauth2Authorization server metadataDiscovery document
GEThttps://foobar.cvyuh.com/oauth2/.well-known/openid-configurationOpenID configurationDiscovery document
GEThttps://foobar.cvyuh.com/oauth2/jwksThe realm’s public signing keysSigning keys
GET, POSThttps://foobar.cvyuh.com/oauth2/authorizeStart a browser sign-inAuthorization code with PKCE
GEThttps://foobar.cvyuh.com/oauth2/authorize/resumeWhere the browser returns after signing in, to finish the requestAuthorization code with PKCE
GEThttps://foobar.cvyuh.com/oauth2/authorize/postThe page that posts the answer back to an app that asked for form_postSigned request objects
POSThttps://foobar.cvyuh.com/oauth2/parPush a sign-in request before the browser goesPushed authorization requests
GET, POSThttps://foobar.cvyuh.com/oauth2/consentThe consent page, and the user’s answerConsent
POSThttps://foobar.cvyuh.com/oauth2/tokenIssue tokens, for every grantAccess tokens
GET, POSThttps://foobar.cvyuh.com/oauth2/userinfoThe signed-in user’s details, for an access tokenOpenID Connect sign-in
POSThttps://foobar.cvyuh.com/oauth2/introspectWhether a token still stands, and what it holdsIntrospection
POSThttps://foobar.cvyuh.com/oauth2/revokeRevoke a tokenRevoke tokens
GEThttps://foobar.cvyuh.com/oauth2/status/{list}A token status listStatus lists
GET, POSThttps://foobar.cvyuh.com/oauth2/logoutSign the user out, from an appLogout
GET, POSThttps://foobar.cvyuh.com/oauth2/logout/confirmThe sign-out confirmation page, and the user’s answerLogout
GEThttps://foobar.cvyuh.com/oauth2/pagesWhat the consent, sign-out and signed-out pages showLogout
POSThttps://foobar.cvyuh.com/oauth2/device_authorizationA device asks for a code to show the userDevice authorization
GET, POSThttps://foobar.cvyuh.com/oauth2/deviceThe page where the user enters the device’s codeDevice authorization
POSThttps://foobar.cvyuh.com/oauth2/authorize-challengeYour own app signs a user in with its own screensFirst-party app sign-in
POSThttps://foobar.cvyuh.com/oauth2/bc-authorizeAn agent asks its owner to approve a requestHave an agent ask its owner
POSThttps://foobar.cvyuh.com/oauth2/registerA developer registers an app with a registration tokenDynamic registration

Base: https://foobar.cvyuh.com/api/v0/am. Every call carries the session cookie, except the sign-in itself.

MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/am/auth/v1/authenticateStart a sign-in, or answer its current page; ?service=<chain> names a chainSessions
POSThttps://foobar.cvyuh.com/api/v0/am/auth/v1/logoutEnd the session the cookie carriesSessions
POSThttps://foobar.cvyuh.com/api/v0/am/auth/v1/landingWhere a browser that just signed in goes next: the returnTo path on this host, or nullSign-in chains
POSThttps://foobar.cvyuh.com/api/v0/am/whoami/v1The signed-in user, their profile, roles and sessionWho am I
GEThttps://foobar.cvyuh.com/api/v0/am/devices/v1The signed-in user’s passkeys, authenticator apps and recovery codesSign-in methods
DELETEhttps://foobar.cvyuh.com/api/v0/am/devices/v1/{id}Remove one of the user’s passkeys or authenticator appsSign-in methods
GEThttps://foobar.cvyuh.com/api/v0/am/sessions/v1List the realm’s live sessions, with filter and pagingSession management
POSThttps://foobar.cvyuh.com/api/v0/am/sessions/v1/endEnd sessions by names, or every session a qbe search matchesSession management
DELETEhttps://foobar.cvyuh.com/api/v0/am/sessions/v1/{id}End one sessionSession management
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/authSettings/authSettingsThe realm’s sign-in methods, second-step rule, default chains and lockoutSign-in methods, Lockout
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/sessionSettings/sessionSettingsHow long sessions last, and how many one user holdsSessions
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/webauthnSettings/webauthnSettingsThe passkey domain and what a passkey ceremony asks forSign-in methods
GET, POST, PATCH, DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/authChain/{id}Sign-in chainsSign-in chains
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/{module type}/{instance}One sign-in method’s settings, such as totpModule/totpSign-in modules
GET, PUThttps://foobar.cvyuh.com/api/v0/am/types/v1/userThe user type, where password rules are declaredPassword rules
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/i18nBundle/i18nBundleSign-in and consent wording, per languagePages in the user’s language
MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/agent?id={id}Register an agentAI agents
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id}Quarantine, release, kill or retire an agent, with statusStop an agent
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id}/relationships/businessOwnerName the user accountable for the agentRegister an agent
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/agent/{id}/relationships/actsForLet the agent act for a user, within a window and a scope ceilingAgents acting for users
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client/{clientId}/relationships/agentLink a client to the agent it authenticates forRegister an agent
POSThttps://foobar.cvyuh.com/api/v0/am/clients/v1/{clientId}/bootstrapMint a one-time bootstrap assertion for an agent’s first tokenRegister an agent
POSThttps://foobar.cvyuh.com/oauth2/bc-authorizeAn agent asks its business owner to approve an actionBackchannel authentication
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvalsThe requests waiting for the signed-in ownerBackchannel authentication
POSThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvals/{id}The owner’s answer, { "decision": "allow" } or { "decision": "deny" }Backchannel authentication
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agentsThe agents allowed to act for the signed-in userLet users remove agents
DELETEhttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agents/{agent}Stop an agent acting for the user, and revoke its tokens in their nameLet users remove agents
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail?agent={id}One agent’s trail: tokens, exchanges, decisions and status changesFollow what an agent did
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail?person={id}One user’s trail, with what agents did in their nameFollow what an agent did
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail/meThe signed-in user’s own trailFollow 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:

TypeWhat it holdsPage
agentOne agent: purpose, risk class, autonomy tier, status, owners and lineageAI agents
agentSettingsAgent key lifetimes, delegation depth, impersonation and guardrails by risk classAI agents
TypeWhat it holdsPage
policyOne rule: who may take which actions on which resources, and whenPolicies
policySetA group of policies an enforcement point asks for by namePolicies
resourceTypeA kind of resource policies can be about, its patterns and actionsPolicies
entitlementA named bundle of scopes and structured permissions, granted through grants linksEntitlements
authorizationSettingsThe issuance and delegation policy sets, and which decisions go on the audit trailIssuance 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.

What a receiving system calls, with an access token carrying ssf.manage for https://foobar.cvyuh.com/ssf, and what a provider pushes to:

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/.well-known/ssf-configuration/oauth2What the realm sends, and where; 404 while ssfEnabled is offSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/streamMake a streamSend signals
GEThttps://foobar.cvyuh.com/oauth2/ssf/streamRead one stream, by stream_id, or all of the caller’sSend signals
DELETEhttps://foobar.cvyuh.com/oauth2/ssf/stream?stream_id={id}Delete a streamSend signals
GEThttps://foobar.cvyuh.com/oauth2/ssf/status?stream_id={id}A stream’s statusSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/statusSet a stream enabled, paused or disabledSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/subjects/addName a user or agent the stream cares aboutSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/subjects/removeStop naming oneSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/verifySend the stream a verification eventSend signals
POSThttps://foobar.cvyuh.com/oauth2/ssf/receive/{transmitter}Where a provider you trust pushes its eventsReceive 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).