Current user
Returns the model of the authenticated user.
Args: auth_context: The authentication context.
Returns: The model of the authenticated user.
Authorizations
OAuth2passwordRequired
Token URL:
Responses
200
Successful Response
application/json
401
Unauthorized
application/json
404
Not Found
application/json
422
Unprocessable Entity
application/json
get
/api/v1/current-userGET /api/v1/current-user HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"body": {
"created": "2025-11-14T18:05:15.638Z",
"updated": "2025-11-14T18:05:15.638Z",
"active": false,
"activation_token": "text",
"full_name": "",
"email_opted_in": true,
"is_service_account": true,
"is_admin": true,
"default_project_id": "123e4567-e89b-12d3-a456-426614174000",
"avatar_url": "text"
},
"metadata": {
"email": "",
"external_user_id": "123e4567-e89b-12d3-a456-426614174000",
"user_metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"permission_denied": false,
"name": "text"
}Last updated
Was this helpful?