Skip to content
API referencePlatformAuth

Resolve the signed-in SaaS user (staff/operator) identity

GET
/v1/auth/whoami

Resolves the bearer to a GLOBAL User (D-027) over the control-plane GByte config, with no project context, and surfaces is_superadmin. The web app calls this to render the signed-in operator/staff identity instead of the project-scoped consumer profile.

Authorization

bearer_auth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/auth/whoami"
{  "email": "string",  "first_name": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "is_superadmin": true,  "last_name": "string",  "profile_picture": "string"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}