Developer documentation
Afritrack API
Base URL: https://api.afritrack.com
Authentication
Send your API key as Authorization: Bearer <key>. Use X-Timezone with an IANA timezone to override the default.
Pagination & limits
Use page and limit; check meta.has_more for more results. Read X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (epoch seconds). A 429 response means the request limit was reached.
Errors
Non-2xx responses include an error code. Keep the request ID when contacting Afritrack.
Migrating from v1
Change the base URL to https://api.afritrack.com/v1/api.php — everything else stays the same. Alerts and reports are retired in v1.
| Legacy operation | v2 endpoint |
|---|---|
| api=assets | GET /v2/assets |
| groups | GET /v2/groups |
| resources | GET /v2/resources/{id} |
| geofences | GET /v2/resources/{id}/geofences |
| geofence-operations | POST / PATCH / DELETE /v2/resources/{id}/geofences and /geofence-groups |
| report | POST /v2/reports |
API reference
Loading API reference…