Operator Api
Session
Inspect the current operator API key or staff session context.
Session
Inspect authenticated operator, scopes, and bearer token context.
Path
GET /api/operator/auth/session
Required input: bearer Authorization header. There are no query parameters and no request body. No additional scope is required beyond a valid operator API key or staff session.
Response fields
Top-level:
auth_type:api_keyorstaffscopes
Operator:
idslugnamestatuscurrency_codebalance_adapter_typetimezonedefault_locale
API key, when auth_type = api_key:
idnamekey_idkey_prefixscopeslast4revoked_at
Staff, when auth_type = staff:
admin_user_idemaildisplay_namerolestatusmust_change_passwordscopes
Use cases
- verify operator config bound to current key
- debug wrong scope issues
- confirm simulator vs
rest_v1adapter mode - confirm whether a dashboard request is using API-key auth or staff-session auth
