Retrieve User
GET
/v1/users/me
Retrieves the currently authenticated user.
curl "https://api.lemonsqueezy.com/v1/users/me" \
-H 'Accept: application/vnd.api+json' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer {api_key}'
Returns
Returns a User object.
{
"meta": {
"test_mode": true
},
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/users/1"
},
"data": {
"type": "users",
"id": "1",
"attributes": {
"name": "John Doe",
"email": "[email protected]",
"color": "#898FA9",
"avatar_url": "https://www.gravatar.com/avatar/1ace5b3965c59dbcd1db79d85da75048?d=blank",
"has_custom_avatar": false,
"createdAt": "2024-05-24T14:08:31.000000Z",
"updatedAt": "2024-08-26T13:24:54.000000Z"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/users/1"
}
}
}