Auth
Caller identity introspection
| Method | Path | Summary |
|---|---|---|
| GET | /v1/whoami | Return the caller's resolved tenant/role |
GET
/v1/whoamiReturn the caller's resolved tenant/role
Resolves the bearer API key and returns the associated tenant id and role.
Responses
200Resolved identity
AuthContext
{
"tenantId": "tenant-acme-01",
"role": "user"
}401Missing, malformed, or invalid API key
ErrorEnvelope
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid API key",
"details": {}
}
}