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 operationv2 endpoint
api=assetsGET /v2/assets
groupsGET /v2/groups
resourcesGET /v2/resources/{id}
geofencesGET /v2/resources/{id}/geofences
geofence-operationsPOST / PATCH / DELETE /v2/resources/{id}/geofences and /geofence-groups
reportPOST /v2/reports

API reference

Loading API reference…