PearPear

Get current user info via API key

Resolves the user behind an x-api-key header. API-key auth only; never falls back to session.

GET
/auth/api-key/me
x-api-key<token>

In: header

Response Body

application/json

curl -X GET "https://example.com/auth/api-key/me"
{  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",  "role": "basic",  "scope": "read",  "authMethod": "api_key"}