Pre-requisites for access to our endpoints

Before you are able to call our endpoints, you are required to create an account on our platform, then go ahead and activate a business profile and await confirmation.

After confirmation, call our auth endpoint to create a test and production token for your application.

  • Live key is prefixed prod
  • Test key is prefixed with test

Your token is valid until it is regenerated.

Note that we do not keep your plain token in our record. They are kept as hashed keys. If you misplace your token or feel it has been compromised, please create a fresh pair. This resets all your API calls to use the newly created token.

Identifier

Access to our endpoints are determined by the access token you call us with. To be properly identified, add Identifier key to your headers, with a value of Token Your_Token.

Sample header object

headers = {"Identifier": "Token test_2_20220101JDAKK873SLG04G", "Accept": "application/json", "Content-Type": "application/json",}

{
"event": "card_created",
"data": {
"card_request_id": "20221010sjgj3h08gufv3",
"card_id": "sdfgagsghgdshjjy",
"account": {"_id": "23rgwrjepvoijkrpo34g9"}
},
"metadata": {"user_id": "1234"}
}

Mode

To process your request in production mode, you are required to also turn on production from the developer tab on your SpendWise dashboard.