OAuth 2.0
Third-party apps use the authorisation code flow with PKCE.
Flow
- Redirect the user to
https://app.axnode.net/oauth/authorizewithclient_id,redirect_uri,scope,stateand a PKCEcode_challenge. - Receive
codeon your redirect URI. - Exchange it at
POST /oauth/tokenwith thecode_verifier. - Use the access token; refresh it before it expires.
curl -X POST "https://api.axnode.net/v2/oauth/token" \
-d grant_type=authorization_code \
-d code=$CODE -d client_id=$CLIENT_ID \
-d redirect_uri=$REDIRECT -d code_verifier=$VERIFIER