Rebrandly for Developers

Use our API to create, track and share custom short links that incorporate your brand domain name.

Get Started


How to receive the OAuth token via POST?

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



The unique Client ID associated with your app.


This is the callback to your app you asked to be authorized in your request.


This should be always token.


This should be always rbapi.


Leave 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.


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.