Skip to content

Exchange the code, or refresh

POST
/oauth/token
curl --request POST \
--url https://api.harperharbor.com/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=authorization_code \
--data code=example \
--data client_id=example \
--data redirect_uri=example \
--data code_verifier=example \
--data refresh_token=example \
--data resource=example
Media typeapplication/x-www-form-urlencoded
object
grant_type
string
Allowed values: authorization_code refresh_token
code
string
client_id
string
redirect_uri
string
code_verifier
string
refresh_token
string
resource
string

Tokens.

Media typeapplication/json
object
access_token
string
refresh_token
string
expires_in
integer
token_type
string
Example
{
"token_type": "Bearer"
}