Skip to content

GET /whoami

Get Current User

GET
/whoami

Return the user key extracted from the current session token.

Decodes the bearer token from the Authorization header and returns the
consumer_key (ArangoDB _key of the User document). Useful for
frontend bootstrapping to confirm the session is still valid and to
retrieve the caller's identity.

Emits: (direct transaction — no event class)

Required scope: auth:session:whoami

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.