List teams of a user
List the teams a user belongs to, with member counts and which ones they lead.
GET https://cotlet.dev/api/v1/lichess/user-teams
read
Returns each team with its ID, name, member count and the leaders, which tells the agent which teams the account can manage. Other team tools take the team_id from here. It reads only.
Parameters
| Name | Type | Description |
|---|---|---|
| username string | string | Lichess username. Defaults to the signed-in account. |
Request
curl https://cotlet.dev/api/v1/lichess/user-teams \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("lichess", "list_user_teams") const result = await cotlet.call('lichess', 'list_user_teams'); cotlet call lichess list_user_teams Example response
{
"teams": [
{
"team_id": "riverside-chess",
"name": "Riverside Chess Club",
"members": 148,
"leaders": [
"club_captain",
"treasurer_anna"
]
},
{
"team_id": "weekend-blitz",
"name": "Weekend Blitz",
"members": 2310,
"leaders": [
"blitz_host"
]
}
]
}