Skip to main content
GET
/
v1
/
users
/
me
cURL
curl --request GET \
  --url http://sandbox.mintlify.com/v1/users/me \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": 1,
    "first_name": "John",
    "last_name": "Doe",
    "username": "johndoe",
    "email": "[email protected]",
    "timezone": "America/New_York",
    "time_format": "12h",
    "start_of_week": "monday",
    "avatar": "https://example.com/avatars/john.png"
  }
}
Retrieve information about the currently authenticated user.

Response

success
boolean
required
Indicates whether the request was successful. Always true for successful responses.
data
object
The user object.

Example Response

{
  "success": true,
  "data": {
    "id": 1,
    "first_name": "John",
    "last_name": "Doe",
    "username": "johndoe",
    "email": "[email protected]",
    "timezone": "America/New_York",
    "time_format": "12h",
    "start_of_week": "monday",
    "avatar": "https://example.com/avatars/john.png"
  }
}

Error Response

{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Unauthenticated."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

User response

success
boolean
required

Indicates whether the request was successful

Example:

true

data
object
required

The response data. Can be an object, array, or null