Skip to main content
GET
/
account
/
api
/
v1
/
whoami
Identify the authenticated caller
curl --request GET \
  --url https://www.closient.com/account/api/v1/whoami \
  --header 'X-API-Key: <api-key>'
{
  "user_id": "<string>",
  "email": "<string>",
  "organizations": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ],
  "metadata": {},
  "api_key": {
    "created": "2025-06-01T10:00:00Z",
    "description": "Production key",
    "id": "d5e6f7a8-9012-3456-abcd-ef7890123456",
    "metadata": {},
    "role": "editor"
  }
}

Authorizations

X-API-Key
string
header
required

Response

200 - application/json

OK

user_id
string<shortuuid>
required

Authenticated user's ID.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
email
string
required

User email address.

organizations
OrganizationInfo · object[]
required

Organizations the user belongs to.

metadata
Metadata · object

Developer-attached key/value data attached to this object. Up to 50 keys; key max 40 chars, value max 500 chars.

api_key
APIKeyInfo · object

API key used for this request (null for session auth).

Example:
{
"created": "2025-06-01T10:00:00Z",
"description": "Production key",
"id": "d5e6f7a8-9012-3456-abcd-ef7890123456",
"metadata": {},
"role": "editor"
}