Page cover

Setting up API access

The stub Connect API has two environments: production and test. Both environments use the same login details (email and password).

circle-info

You can access the test environment with the following details: Test website address: https://test.stub.africa/arrow-up-right Test API endpoint: https://test.connect.stub.africa/arrow-up-right Test key format: sk_test_xxxxxxxxxxxxxxxxxxx

circle-info

You can access the production environment with the following details: Production website address: https://stub.africa/arrow-up-right Production API endpoint: https://connect.stub.africa/arrow-up-right Production key format: sk_live_xxxxxxxxxxxxxxxxxxx

triangle-exclamation

Where to get your API key:

To get your test API key login into https://test.stub.africa/arrow-up-right using the login details you created in the introduction.

  1. Log in to your stub account

  2. Select More in the left side nav bar

  3. Select Apps in the left side nav bar

  4. You can now view and copy your API key

Integrations page on stub

Now test that your API Key works

Now that you have your API key make sure everything is working correctly by making a post request to the test API endpoint below. You can select any App ID that includes your business name.

post
Body
apikeystringRequired
appidstringRequired
Responses
chevron-right
200Success

No content

post
/api/verify/apikey

No content

circle-check

Last updated