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" } }
Returns information about the currently authenticated user
true
Show User properties
null
{ "success": false, "error": { "code": "UNAUTHORIZED", "message": "Unauthenticated." } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User response
Indicates whether the request was successful
The response data. Can be an object, array, or null
Show child attributes