curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/auth/whoami' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"scopes": [
"string"
],
"is_admin": true
}
Auth Whoami V1
Echo the calling key’s effective auth context. Useful for SDK debugging — ‘what scopes do I have, what tenant am I bound to?’ Doesn’t hit the database…
GET
/
api
/
v1
/
auth
/
whoami
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/auth/whoami' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"scopes": [
"string"
],
"is_admin": true
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
get_api_key_tenant resolved at request time. Reaching this endpoint
successfully proves the key is active, unexpired, and within rate
limit (the auth dependency would have rejected otherwise).
Response
WhoamiResponse
string
required
string
required
string
required
string[]
required
boolean
required
Convenience flag: true iff
admin is in the key’s scope set. Admin keys can manage other keys, webhooks, and templates.Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/auth/whoami' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"scopes": [
"string"
],
"is_admin": true
}
Last modified on September 21, 2026