oauth
Token exchange
Exchange auth code for access token as part of sgID authorization code flow
post/v2/oauth/token
Request
- Base URLhttps://api.id.gov.sg
- Authnone declared
Request body
Example request
{
"client_id": "MYCLIENT-PROD",
"client_secret": "abcabc[...]abcabc",
"code": "abcdefg12345678[...]gfedcba",
"grant_type": "authorization_code",
"code_verifier": "u1ta-MQ0e7TcpHjgz33M2DcBnOQu~aMGxuiZt0QMD1C"
}Response
Successful token exchange
Changes
No recorded changes to this operation across all 1 revision of this API.