Developers
Authentication and keys
Each data source, meaning a tracking system or platform, has its own key, issued by the Tawasul team from the admin panel. The key is shown once when it is issued, so store it safely.
Keys expire. When a key is renewed, the previous one keeps working for a short overlap so you can move your system to the new key.
Send the key with every request in this header:
Authorization: Bearer <YOUR_SOURCE_TOKEN>
The key only allows sending positions, and everything you send is attributed to your source automatically, so do not send a source or company name in the request.
Requests must use HTTPS. A plain HTTP request is refused, not redirected, so the key is never sent unencrypted.
A wrong or expired key returns 401 with the header WWW-Authenticate: Bearer. Repeated failures from the same address are paused with 429. A suspended source returns 403.
Checking the connection
To check the API is up, without a key:
curl "https://tawasulone.com/api/v1/health"
{"success": true, "data": {"status": "up"}, "error": null, "meta": {"request_id": "", "timestamp": "2026-10-18T09:00:00Z"}}