Accept a team join request

Accept one person's request to join a team you lead.

POST https://cotlet.dev/api/v1/lichess/teams/{team_id}/join-request/accept

write Confirm

Adds the applicant to the team and returns ok. Needs a team leader role. The applicant becomes a member of the team, so it reaches another person. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: accept_team_join_request
NameTypeDescription
team_id string required string Team ID from list_user_teams, e.g. 'coders' for lichess.org/team/coders.
username string required string Applicant username from list_team_join_requests.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/lichess/teams/coders/join-request/accept \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"username"}'
Python
result = client.call("lichess", "accept_team_join_request", {"team_id":"coders","username":"username"})
Node.js
const result = await cotlet.call('lichess', 'accept_team_join_request', {"team_id":"coders","username":"username"});
CLI
cotlet call lichess accept_team_join_request --data '{"team_id":"coders","username":"username"}'

Example response

JSON

{
  "ok": true,
  "team_id": "riverside-chess",
  "username": "maya_plays",
  "members": 149
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.