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>
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.
POST https://uat.tibapay.co.tz/auth/tokenRequest 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": "...",
}
}