Authentication

All API requests must be authenticated using a bearer token. The token must be included in the Authorization header of your request.

Example Header:

Authorization: Bearer <YOUR_TOKEN>

Base URL

https://uat.tibapay.co.tz

Token Generation

To obtain a bearer token, you need to make a POST request to the https://uat.tibapay.co.tz/auth/token endpoint with a Content-Type of application/json.

Request Body:

Parameter Type Required Description
email string Yes Your client ID.
password string Yes Your client secret.

Example Request:

{
  "email": "vendoremail@vendor.com",
  "password": "XXXXXXX"
}

Example Response:

{
  "status": "OK",
  "message": "Successful login",
  "returnData": {
    "accessToken": "....",
    "refreshToken": "...",
  }
}