cURL
curl --request POST \ --url https://api.sandbox.bitwage.com/oauth2/token \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "client_id": "<string>", "client_secret": "<string>", "grant_type": "authorization_code" } '
{ "access_token": "<string>", "user_id": "<string>", "company_id": "<string>" }
Exchange the authorization code received from /authorize for an access token. The access token is used in subsequent API requests.
/authorize
Authorization code from the /authorize step.
Your OAuth app client ID.
Your OAuth app client secret.
authorization_code
Access token returned successfully.