Zitadel Preview Docs

Get my user information

GET
/users/me

Authorization

nextgenSession
__nextgen_session<token>

The __nextgen_session cookie issued at session creation or superseding handoff exchange.

A missing or invalid cookie yields 401 with code auth.unauthorized and the message Missing or invalid session token.

In: cookie

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/users/me"
{  "id": "user_id_12345",  "schema": "string",  "attributes": {},  "metadata": {    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "status": "active",    "lifecycle_owner_team_id": "string"  }}
{  "code": "string",  "message": "string",  "details": {}}
{  "message": "string",  "details": {},  "code": "user.not_found"}

{  "code": "auth.unauthorized",  "message": "The request lacks valid authentication credentials."}