Diagnostics

Resolve the authenticated tenant

Echoes the tenant 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 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. Sent as the x-api-key request header. The key is tenant-scoped.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/whoami"
{  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "role": "admin"}
{  "name": "string",  "message": "string"}