Users
A user represents your personal user account that you use to log in to Lemon Squeezy.
The user object
Attributes
name
The name of the user.
The email address of the user.
color
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.
avatar_url
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_custom_avatar
Has the value true
if the user has uploaded a custom avatar image.
createdAt
An ISO 8601 formatted date-time string indicating when the object was created.
updatedAt
An ISO 8601 formatted date-time string indicating when the object was last updated.
User object
{
"type": "users",
"id": "1",
"attributes": {
"name": "Darlene Daugherty",
"email": "[email protected]",
"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"
}
}
Retrieve the authenticated user
Retrieves the currently authenticated user.
GET /v1/users/me
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.
Response
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/users/1"
},
"data": {
"type": "users",
"id": "1",
"attributes": {
"name": "Darlene Daugherty",
"email": "[email protected]",
"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"
}
}
}