Getting started
Requests and responses
The rules every endpoint follows, so you only have to learn them once.
Address and format
- All endpoints are under
https://api.wasil-iq.com/v1, over HTTPS only. - Requests and answers are JSON (UTF-8). Send
Content-Type: application/jsonwith a body. - The API always answers JSON, also for errors and unknown addresses. You never get an HTML page.
- Every answer to a valid key carries the header
X-Wasil-Mode:live, orsandboxwhen the key is a test key.
curl -X POST https://api.wasil-iq.com/v1/rates/quote \
-H "Authorization: Bearer $WASIL_KEY" \
-H "Content-Type: application/json" \
-d '{"origin": "ger", "weight_kg": 2.5, "city_id": 1}'
The answer envelope
A successful answer puts the result under data. Lists add meta. Errors use error instead; see Errors.
{
"data": [
{ "id": "WPger10005254CS3", "tracking_number": "1Z999AA10123456784", "...": "..." }
],
"meta": { "page": 1, "per_page": 25, "total": 137 }
}
Pagination
List endpoints take page (from 1) and per_page (default 25, at most 100). meta.total is the number of results over all pages.
curl "https://api.wasil-iq.com/v1/packages?page=2&per_page=50" \
-H "Authorization: Bearer $WASIL_KEY"
What you can see
Your key reaches the Wasil accounts that belong to your partner account and nothing else.
A package or customer of someone else answers 404, exactly like one that does not exist.
Modules
Each endpoint belongs to a module (shown next to it in these docs).
If the module is not switched on for you, the endpoint answers 403 with the code module_disabled and the module's name.
GET /v1/me lists your modules.
Rate limits
Your plan sets how many requests you may send per minute (requests_per_minute in GET /v1/me), counted for the partner, not per key.
Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit you get 429; wait the number of seconds in Retry-After.
HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
{
"error": { "code": "rate_limited", "message": "Too many requests. Wait and try again." }
}
Dates, numbers and text
- Moments are ISO 8601 with an offset:
2026-10-03T14:05:00+03:00. Days are2026-10-03. - A field without a value is
null; it is not left out. - Statuses are plain text (for example
on the way). Compare them without regard to upper and lower case. - New fields may be added to answers at any time. Ignore fields you do not know.
Sending the same request twice
Reads can be repeated freely. The two creating calls protect you from doubles:
creating a customer whose phone you already created answers 409 customer_exists with the suite,
and announcing a tracking number you already announced for that account answers 409 expected_exists with its id.
So after a timeout you can simply send the request again.