Token exchange
POST https://sandbox.orcid.org/oauth/token
3. Exchange the authorization code for an access token
| Item | Parameter |
|---|---|
| URL | https://sandbox.orcid.org/oauth/token |
| client_id | Your client ID |
| client_secret | Your client secret |
| grant_type | authorization_code |
| code | The authorization code |
Request Body
[{"name"=>"code", "value"=>"{{CODE}}", "datatype"=>"string"}, {"name"=>"client_id", "value"=>"{{CLIENT_ID}}", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"{{CLIENT_SECRET}}", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"authorization_code", "datatype"=>"string"}, {"name"=>"redirect_uri", "value"=>"https://developers.google.com/oauthplayground", "datatype"=>"string"}]
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |