A user represents your personal user account that you use to log in to Lemon Squeezy.
The name of the user.
The email address of the user.
A randomly generated hex color code for the user. We use this internally as the background color of an avatar if the user has not uploaded a custom avatar.
A URL to the avatar image for this user. If the user has not uploaded a custom avatar, this will point to their Gravatar URL.
Has the value true
if the user has uploaded a custom avatar image.
An ISO-8601 formatted date-time string indicating when the object was created.
An ISO-8601 formatted date-time string indicating when the object was last updated.
{
"type": "users",
"id": "1",
"attributes": {
"name": "Darlene Daugherty",
"email": "gernser@yahoo.com",
"color": "#898FA9",
"avatar_url": "https:\/\/www.gravatar.com\/avatar\/1ace5b3965c59dbcd1db79d85da75048?d=blank",
"has_custom_avatar": false,
"createdAt": "2021-05-24T14:08:31.000000Z",
"updatedAt": "2021-08-26T13:24:54.000000Z"
}
}
Retrieves the currently authenticated user.
Returns a user object.
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}'
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https:\/\/api.lemonsqueezy.com\/v1\/users\/1"
},
"data": {
"type": "users",
"id": "1",
"attributes": {
"name": "Darlene Daugherty",
"email": "gernser@yahoo.com",
"color": "#898FA9",
"avatar_url": "https:\/\/www.gravatar.com\/avatar\/1ace5b3965c59dbcd1db79d85da75048?d=blank",
"has_custom_avatar": false,
"createdAt": "2021-05-24T14:08:31.000000Z",
"updatedAt": "2021-08-26T13:24:54.000000Z"
},
"links": {
"self": "https:\/\/api.lemonsqueezy.com\/v1\/users\/1"
}
}
}