OAuth
Obtain access token
OAuth2 token endpoint. Exchanges an authorization code for an access token.
post/api/token
Request
- Base URLhttps://lichess.org
- URLhttps://lichess.org/api/token
- Authnone required
Request body application/x-www-form-urlencoded
Example request
{
"grant_type": "authorization_code",
"code": "liu_iS1uOZg99Htmo58ex2jKgYziUfzsnAl0",
"code_verifier": "Ry1rbGdOMTQtUjhOc0lmTnFKak1LTHV0NjlRMll2aXYtTThkQnlJRkRpaGwyQjh0ZDNFdzFPSG9KUlY4M1NrRzJ5ZHhUdjVZR08zLTZOT3dCN2xLfjZOXzU2WHk4SENP",
"redirect_uri": "http://example.com/",
"client_id": "example.com"
}Response
Access token successfully obtained.
Changes
No recorded changes to this operation across all 16 revisions of this API.