Skip to main content
GET
/
v1
/
auth
/
whoami
Get authenticated caller
curl --request GET \
  --url https://api.endaoment.org/v1/auth/whoami \
  --cookie NdaoAuth=
{
  "clientName": "Authorization Server",
  "roles": [
    "keeper"
  ],
  "openIdConnectClientId": "partner-oidc-client"
}

Authorizations

NdaoAuth
string
cookie
required

Headers

x-api-key
string

API key used by server-side integrations. Bearer auth or the NdaoAuth cookie may also be used.

Response

Authenticated caller metadata

clientName
string
required

Human-readable name of the API key client.

Example:

"Authorization Server"

roles
string[]
required

Roles granted to the API key client.

Example:
["keeper"]
openIdConnectClientId
string

OIDC client ID associated with the API key, when the key is tied to a tech platform.

Example:

"partner-oidc-client"