curl --request GET \
--url https://{host}/v1/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "limits",
"day": "2026-09-25",
"requests_per_second": {
"limit": 20,
"burst": 40
},
"requests_under_way": {
"limit": 5,
"used": 0,
"remaining": 5,
"resets_at": null
},
"orders_kobo_per_day": {
"limit": 1000000000,
"used": 522500,
"remaining": 999477500,
"resets_at": "2026-09-25T23:00:00Z"
},
"allocations_kobo_per_day": {
"limit": 5000000000,
"used": 5000000,
"remaining": 4995000000,
"resets_at": "2026-09-25T23:00:00Z"
},
"per_request": {
"order_quantity": 100000000,
"allocation_kobo": 10000000000,
"request_body_bytes": 16384
}
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_request",
"message": "The request could not be read.",
"doc_url": "https://docs.matambaintelligence.com/errors#invalid_request"
}
}{
"error": {
"type": "authentication_error",
"code": "unauthorized",
"message": "Invalid credentials.",
"doc_url": "https://docs.matambaintelligence.com/errors#unauthorized"
}
}{
"error": {
"type": "permission_error",
"code": "insufficient_scope",
"message": "This API key does not have the scope this request requires. Nothing was done.",
"doc_url": "https://docs.matambaintelligence.com/errors#insufficient_scope"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Nothing was done. Send the same request again after the Retry-After interval.",
"doc_url": "https://docs.matambaintelligence.com/errors#rate_limited"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "The gateway encountered an internal error. Send the same request again, exactly as you sent it.",
"doc_url": "https://docs.matambaintelligence.com/errors#internal_error"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "The gateway is temporarily unable to process this request. Send the same request again, with the same Idempotency-Key if it has one.",
"doc_url": "https://docs.matambaintelligence.com/errors#service_unavailable"
}
}Retrieve your limits
Returns each of your limits and how much of it you’ve used, counted the way the limit counts it. remaining is what a request can use at this moment. Takes no parameters.
curl --request GET \
--url https://{host}/v1/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "limits",
"day": "2026-09-25",
"requests_per_second": {
"limit": 20,
"burst": 40
},
"requests_under_way": {
"limit": 5,
"used": 0,
"remaining": 5,
"resets_at": null
},
"orders_kobo_per_day": {
"limit": 1000000000,
"used": 522500,
"remaining": 999477500,
"resets_at": "2026-09-25T23:00:00Z"
},
"allocations_kobo_per_day": {
"limit": 5000000000,
"used": 5000000,
"remaining": 4995000000,
"resets_at": "2026-09-25T23:00:00Z"
},
"per_request": {
"order_quantity": 100000000,
"allocation_kobo": 10000000000,
"request_body_bytes": 16384
}
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_request",
"message": "The request could not be read.",
"doc_url": "https://docs.matambaintelligence.com/errors#invalid_request"
}
}{
"error": {
"type": "authentication_error",
"code": "unauthorized",
"message": "Invalid credentials.",
"doc_url": "https://docs.matambaintelligence.com/errors#unauthorized"
}
}{
"error": {
"type": "permission_error",
"code": "insufficient_scope",
"message": "This API key does not have the scope this request requires. Nothing was done.",
"doc_url": "https://docs.matambaintelligence.com/errors#insufficient_scope"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Nothing was done. Send the same request again after the Retry-After interval.",
"doc_url": "https://docs.matambaintelligence.com/errors#rate_limited"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "The gateway encountered an internal error. Send the same request again, exactly as you sent it.",
"doc_url": "https://docs.matambaintelligence.com/errors#internal_error"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "The gateway is temporarily unable to process this request. Send the same request again, with the same Idempotency-Key if it has one.",
"doc_url": "https://docs.matambaintelligence.com/errors#service_unavailable"
}
}Authorizations
Authorization: Bearer <key>. Sandbox keys start with mgw_test_ and live keys start with mgw_live_. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.
Response
Your limits and what you've used of them.
Your limits, what you've used of each, and what's left. See Limits.
"limits"The day the daily limits count, in West Africa Time (WAT).
How many requests a second you can make, and how many at once in a burst.
Show child attributes
Show child attributes
Order value per day, in kobo, WAT. See How order value is counted.
Show child attributes
Show child attributes
Allocations per day, in kobo, WAT. See How allocations are counted.
Show child attributes
Show child attributes
What one request can carry. The same for every partner.
Show child attributes
Show child attributes