Account
The current principal and the org it acts in
Returns the calling principal (API key or user session) and the organization the request acts in. For an API key that org is fixed by the key; for a session it is the active org, and availableOrgs lists every org the user belongs to. Unlike /v1/me this works for API keys and does not onboard.
Command line
The orl CLI wraps this endpoint:
orl account whoamiAuthorization
apiKey AuthorizationBearer <token>
OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/whoami"{ "principalType": "api_key", "organizationId": "string", "organizationName": "string", "userId": "string", "email": "string", "role": "string", "scopes": [ "string" ], "availableOrgs": [ { "organizationId": "string", "name": "string", "role": "string", "features": { "batch": true, "perVmSshKeys": true, "fabric": true, "publicEndpoint": true, "flags": { "property1": true, "property2": true } } } ]}