Skip to main content

Authorization

POST: /v1/b2b/token

The API uses keys to authenticate requests. You can view and manage your API keys in the settings.

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.

Authentication to the API is performed via HTTP Basic Auth. Your Account UUID is your id & API Key is your secret. Provide a base64 encoded id:secret as the basic auth value.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

    curl -X POST \
https://api.tupay.africa:8888/v1/b2b/token \
-H 'Authorization: Basic {base64(id:secret)}'

Response Schema

  • access_token (String): The token that will be required to access other services
  • issued_at (Long): The time issued in milliseconds
  • expires_in (Integer): The expiry in seconds