Diagnostics

Resolve the authenticated tenant

Echoes the tenant and role the presented API key resolves to. Useful as an "is my key valid?" check. Returns `401` if the key is missing/invalid.

GET
/whoami

Echoes the tenant and role the presented API key resolves to. Useful as an "is my key valid?" check. Returns 401 if the key is missing/invalid.

Authorization

x-api-key<token>

The per-tenant API key, copied from Settings → API & integrations. Sent as the x-api-key request header. The key is tenant-scoped and acts with Admin-equivalent, tenant-wide access.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/whoami"
{  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "role": "admin"}
{  "error": {    "code": "unauthorized",    "message": "Missing or invalid API key."  }}