Get my profile
Return the signed-in Lichess profile: username, title, ratings per game type and account dates.
GET https://cotlet.dev/api/v1/lichess/account
read
Returns the username, an optional title, one rating per game type (bullet, blitz, rapid, classical, correspondence), the account creation date and the count of games. Call it first to learn which account the agent works as. It reads only and changes nothing.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/lichess/account \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("lichess", "get_account") const result = await cotlet.call('lichess', 'get_account'); cotlet call lichess get_account Example response
{
"username": "club_captain",
"title": null,
"created_at": "2019-03-14T10:22:00Z",
"ratings": {
"bullet": 1710,
"blitz": 1824,
"rapid": 1790,
"classical": 1755,
"correspondence": 1600
},
"games_played": 6412
}