Skip to main content
GET
/
v1
/
whoami
Return the authenticated principal (org, scopes, optional user)
curl --request GET \
  --url https://api.webhook.co/v1/whoami \
  --header 'Authorization: Bearer <token>'
{
  "orgId": "<string>",
  "scopes": [
    "<string>"
  ],
  "userId": "<string>"
}

Authorizations

Authorization
string
header
required

A whk_-prefixed API key (opaque; not a JWT).

Response

Success.

orgId
string
required
Minimum string length: 1
scopes
string[]
required
userId
string