The RedirHub API uses an API key and API secret to authenticate requests. To get started, you must first create an API key by signing into your RedirHub Dashboard.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

The RedirHub API requires an Authorization request header to be set in any requests that are made. The synyax for the header is as follows: Authorization: bearer <token>. The token is a string that you can generate in the RedirHub dashboard.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

# cURL is most likely already installed on your machine
curl --location --request GET '' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your-token-here}'

Last updated