Get Current User

GET /api/v1/users/me

Retrieves the profile information for the currently authenticated user.

Responses

  • 200 application/json

    Current user's profile

    Hide response attributes Show response attributes object
    • created_at string Required
    • email string Required
    • first_name string Required
    • id integer Required
    • last_login_at string Required
    • last_name string Required
    • organization_id integer Required
    • role string Required
    • updated_at string Required
  • 401 application/json

    Unauthorized (JWT invalid/missing or User ID not found)

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 404 application/json

    User not found

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 500 application/json

    Failed to get user

    Hide response attribute Show response attribute object
    • * string Additional properties
GET /api/v1/users/me
curl \
 --request GET 'http://api.example.com/api/v1/users/me' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "created_at": "string",
  "email": "string",
  "first_name": "string",
  "id": 42,
  "last_login_at": "string",
  "last_name": "string",
  "organization_id": 42,
  "role": "string",
  "updated_at": "string"
}
Response examples (401)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (404)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (500)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}