Routely API Reference
The Routely API provides programmatic access to our intelligent carrier allocation engine. Send shipment details via a simple REST API and receive real-time, fully-itemized cost breakdowns, the optimal winning carrier, and a complete list of eligible alternatives in milliseconds.
Authentication
The API uses Bearer tokens to authenticate requests. You can generate API keys from the Settings panel in the Routely dashboard.
Authorization: Bearer routely_live_a1b2c3d4...API access is exclusively available on the Pro Plan. View pricing details.
Create Allocation
POST
https://routely.in/api/v1/allocateEvaluates all configured carrier services against the shipment payload and returns the optimal routing decision.
Request Payload
Request Example
Response Example
{
"status": "success",
"allocation": {
"winner": {
"forwarder": "UBI",
"carrier": "USPS",
"service": "Priority Mail",
"total_cost_usd": 16.31,
"cost_breakdown": {
"base_rate_usd": 16.31,
"base_rate_label": "Zone 1, 18 lb CW",
"surcharges_usd": 0,
"total_cost_usd": 16.31
},
"recommendation_reason": "Lowest total landed cost"
},
"alternatives": [
{
"forwarder": "UBI",
"carrier": "FedEx",
"service": "International Priority",
"base_rate_usd": 19.44,
"surcharges_usd": 0,
"total_cost_usd": 19.44
}
],
"ineligible_carriers": [
{
"carrier": "DHL",
"reason": "No contracted rate for this lane"
}
]
},
"usage": {
"allocations_used": 43,
"allocations_limit": 5000,
"resets_at": "2026-06-01"
}
}Rate Limits
The Routely API enforces two concurrent rate limits to ensure stability:
- Concurrency Limit: Maximum of 10 requests per second per company. Returns
429 RATE_LIMITEDif exceeded. - Monthly Quota: Based on your Pro plan limit (e.g., 5,000 requests/month). Returns
429 LIMIT_REACHEDif exhausted.
