Authentication
The Referd API uses API keys to authenticate requests. You can view your API keys in the Referd Dashboard.
Referd APIs are authenticated using API Keys. API Keys add an additional layer of security to your account. The provided API Keys are namely, API Key and Secret Key (also defined as transaction key).
The API Key can be used for regular non-sensitive endpoints, for instance, create user, while the Secret Key is used along with the API Key when performing sensitive operations.
Highly Important Note! Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret (transaction) key in publicly accessible areas such as GitHub, client-side code, and so forth.
Accordingly, you need to provide your account's API Key and (in some cases) Secret Key as well in the header with every request.
Note! API requests executed without authentication will fail.
Below is an example of the authentication through API Key header.
Also, below is an example of the authentication using both API Key and Secret Key.
Last updated