Skip to Content
Omnibase

Get authenticated user identity

GET
/api/v1/auth/whoami

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Response Body

OK

application/json
  1. response
authenticated*boolean
user_id*string
Example Request
curl -X GET 'https://api.omnibase.tech/api/v1/auth/whoami'
Example Response
{  "authenticated": true,  "user_id": "550e8400-e29b-41d4-a716-446655440000"}