Exchange a code or rotate a refresh token
POST
/oauth/tokenExchange the code once with its original verifier. Persist the rotated access and refresh tokens together. Confidential clients authenticate as registered.
Authentication Use the client authentication method selected at registration.
Request body
application/x-www-form-urlencoded
Format 1
client_idstringclient_secretstringFor a confidential client using client_secret_post. A client using client_secret_basic supplies its registered credentials in the Authorization header.
grant_typeauthorization_code · requiredcodestring · requiredcode_verifierstring · requiredredirect_uristring · uriresourcehttps://colby.ing/api/partner/v1
Format 2
client_idstringclient_secretstringFor a confidential client using client_secret_post. A client using client_secret_basic supplies its registered credentials in the Authorization header.
grant_typerefresh_token · requiredrefresh_tokenstring · requiredresourcehttps://colby.ing/api/partner/v1scopepartner.lifecycle
Responses
200 · Issued tokens
application/json
access_tokenstring · requiredtoken_typeBearer · requiredexpires_ininteger · requiredrefresh_tokenstring · requiredscopepartner.lifecycle · required
400 · OAuth error
application/json
errorstring · requirederror_descriptionstring
401 · OAuth error
application/json
errorstring · requirederror_descriptionstring
429 · OAuth error
application/json
errorstring · requirederror_descriptionstring
