Lichess API
15 endpoints for Lichess, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/lichess
- Connects with
- Your own Lichess account. Team tools need a team leader role, and sending team updates needs the Updates permission. You sign in yourself in your Cloud Browser; Cotlet never plays moves for you.
- Integration page
- Lichess
Read (8)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | Return the signed-in Lichess profile: username, title, ratings per game type and account dates. |
| GET | List the teams a user belongs to, with member counts and which ones they lead. |
| GET | List pending requests to join a team you lead, with each applicant's message and profile. |
| GET | List recently active, running and upcoming Arena tournaments from the Lichess schedule. |
| GET | Return the final standings of an Arena tournament: rank, score, rating and performance per player. |
| GET | List the studies of a user with their IDs, names and update dates. |
| GET | Export the games of a user as PGN or JSON, newest first, filtered by date, game type, color and opponent. |
| GET | List the broadcasts a user created, with their rounds and start dates. |
Write (7)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Accept one person's request to join a team you lead. |
| POST | Decline one person's request to join a team you lead. |
| POST | Send a message to all members of a team you lead. |
| POST | Create a public or private Arena tournament with a clock, length, start time and entry rules. |
| POST | Add a PGN as new chapters to a study you own or can edit. |
| POST | Create a broadcast for an over-the-board event, to which rounds are added next. |
| POST | Add a round to a broadcast, fed from a PGN URL, Lichess game IDs or Lichess usernames. |