Skip to content
Customer IdentityMarkdown

Customer Identity API

Every endpoint a customer realm uses 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

Customer Identity runs on the same realm endpoints as the rest of the product. This page gathers the ones a customer realm uses. The admin and self-service calls are under https://foobar.cvyuh.com/api/v0/am and take a session in the x-cvyuh-token cookie (see Call the API); your apps’ calls are under https://foobar.cvyuh.com/oauth2 and take the app’s own credentials, as OAuth 2.0 and OpenID Connect say.

MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/user?id={id}Create a customer’s accountCreate customer accounts
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/user/{id}Change a customer’s profile, or turn their access offAdd and change users

Every directory endpoint is in the Directory & Lifecycle API.

MethodEndpointWhat it doesPage
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/webauthnSettings/webauthnSettingsThe passkey domain, and what a passkey ceremony asks forPasskey sign-in for customers
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/authSettings/authSettingsWhich methods the realm runs, and whether a second step is requiredPasskey sign-in for customers
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/authSettings/authSettingsLockout: how many failures lock an account, over what window, and for how longProtect customer sign-in
GET, POSThttps://foobar.cvyuh.com/oauth2/authorizeWhere your app sends a customer to sign inGet started with Customer Identity
POSThttps://foobar.cvyuh.com/oauth2/tokenWhere your app exchanges a code for tokensGet started with Customer Identity

Every sign-in and token endpoint is listed in the realm’s Discovery document, at https://foobar.cvyuh.com/oauth2/.well-known/openid-configuration.

MethodEndpointWhat it doesPage
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2SettingsRemember consent, let trusted apps skip, and how long a customer has to answerThe consent page
POSThttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client?id={client id}Register an app, with the name the consent page showsGet started with Customer Identity
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Client/{client id}Name an app, let it skip the page, or stop it for every customerShow or skip the consent page
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2ConsentThe consent records the realm keeps, one per customer and appRemember what users allowed
DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Consent/{record id}Remove one customer’s consent to one app, so they’re asked againLet users remove apps they allowed
GET, PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/i18nBundle/i18nBundleThe consent page’s wording and scope labels, per languageThe consent page

Called with the customer’s own session, for their own account.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/appsThe apps the customer allowedAuthorized apps
DELETEhttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps/{client id}Take an app back, ending its tokens for themAuthorized apps
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agentsThe AI agents that may act for the customerLet users remove agents
DELETEhttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/agents/{agent}Stop an agent acting for themLet users remove agents
GEThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvalsWhat an agent is waiting for the customer to approveBackchannel authentication
POSThttps://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/approvals/{id}Answer oneBackchannel authentication
POSThttps://foobar.cvyuh.com/api/v0/am/whoami/v1Who the customer is: profile and sessionSelf-service
GEThttps://foobar.cvyuh.com/api/v0/am/devices/v1Their passkeys, authenticator apps and recovery codesSelf-service
DELETEhttps://foobar.cvyuh.com/api/v0/am/devices/v1/{id}Remove a passkey or an authenticator appSelf-service

GET /me/v1/oauth2/apps answers a list of { "clientId", "clientName", "scopes", "firstGranted", "lastGranted", "offline" }. Both DELETE calls answer 204; taking back an app the customer never allowed answers 404.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/user/{id}A customer’s profileCustomer data and privacy requests
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail?person={id}What was done by and for a customerCustomer data and privacy requests
POSThttps://foobar.cvyuh.com/api/v0/am/sessions/v1/endEnd a customer’s sessionsCustomer data and privacy requests
DELETEhttps://foobar.cvyuh.com/api/v0/am/objects/v1/user/{id}Delete a customer’s accountCustomer data and privacy requests

Realms are created and changed on the realms API; see Realms and sub-realms. An app serving many business customers calls each realm on its own host; see Connect one app to many business customers.