Authentication

How to receive the OAuth code via POST?

In default mode (see Authentication), Rebrandly OAuth server reaches the user redirect_url using a GET request, passing the code as a query parameter.
In some cases, it would be the choice of preference to have the OAuth code returned within a POST body.
In order to get back the code wrapped into the body of a POST request, a further query parameter is required in the OAuth URL (https://oauth.rebrandly.com/connect/oauth):

ParameterDescription
client_idThe unique Client ID associated with your app.
redirect_uriThis is the callback to your app you asked to be authorized in your request.
response_typeThis should be always code.
scopeThis should be always rbapi offline_access.
response_modeLeave it empty if you want the OAuth server to use GET HTTP method when redirecting to your redirect_uri. Use form_post value if you want the OAuth server to use POST HTTP method, instead.

Did this page help you?
// Bulk plan CTA banner: requested by Alison to promote the high-volume pricing plan. Injected in Footer HTML per ReadMe convention, but renderd at the top of the viewport via the fixed-position CSS above.
Sending 250K+ links a year? You qualify for a better rate. See high-volume pricing