Authentication

3min
overview the salesriver ai api uses api keys to authenticate requests you can view and manage your api keys in the salesriver ai 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 all api requests must be made over https http //en wikipedia org/wiki/http secure calls made over plain http will fail api requests without authentication will also fail make sure to keep your api keys secure and rotate them periodically to maintain security example of an authorization header with your api key authorization your api key generating an api key follow these steps to generate your first api key log in to your salesriver ai dashboard click the api keys link in the navigation window on the left side of your screen on the api keys page, click the "generate api key" button once the api key is generated, you will be able to view it in the browser click the copy icon button to copy it to your clipboard rotating your api key log in to your salesriver ai dashboard click the api keys link in the navigation window on the left side of your screen your current api key is shown at the top left side of the screen click the rotate icon, then confirm by clicking the "i'm sure" button in the confirmation modal a new key will be generated and will appear in the "your api key" box your existing api key (the one that you just rotated) will appear at the top of the api key history list important your existing api key is still active until you manually deactivate it once you are done replacing the api key in your code, be sure to deactivate the existing api key by clicking the red "deactivate" button in the api key history list