Skip to content

Instantly share code, notes, and snippets.

@switchtrue
Created January 31, 2018 05:44
Show Gist options
  • Save switchtrue/6005505dd315594ce5c39eed98bcd82f to your computer and use it in GitHub Desktop.
Save switchtrue/6005505dd315594ce5c39eed98bcd82f to your computer and use it in GitHub Desktop.
Reposit Market API - API Keys

Reposit Power Market API - API Keys

Reposit Power offer the ability to generate and use API Keys in favour of username/password when using the Market API. These API keys a suited for use when using the Market API as they have an indefinate expiry ensuring you do not have to regularly re-authenticate with the API - as such these keys must be securely stored. API Keys may also whitelist IP addresses that they are valid to be used from therefore providing a second factor of authentication.

Creating a Key

API keys for the Reposit Market API can be generated by first logging in to Reposit Fleet. Once you ahve logged in click your username at the top right and then select "User Settings"

Within the section labelled "API Keys" click the "Add API Key" button.

Within the dialog that appears you will be able to name the key you are generating and specify a whitelist of IP addresses that this token is valid for. You will also need to confirm your password. When you have configured your keys settings click "Add" and your newly created key will be displayed - the key itself is not stored by Reposit and therefore this is your only opportunity to save the key securely.

Note: The generated key authenticates as the account that you are currently logged in to Reposit Fleet for and as such will carry the same permissions. If you require a locked down account it is recommend that you create a new account for Reposit Fleet and generate the API Key for this account.

Using the API Key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment