API Reference
SALLY provides a powerful REST API for route planning, HOS compliance, and fleet management.
Base URL
https://sally-api.apps.appshore.in/api/v1Quick Start
- Get your API key
- Authenticate your requests
- Explore endpoints in the interactive playground
Core Endpoints
Routes
Plan optimized, HOS-compliant routes with automatic rest and fuel stop insertion.
Key endpoints:
POST /api/v1/routes/plan- Plan a new routeGET /api/v1/routes/{planId}- Get route detailsPOST /api/v1/routes/{planId}/activate- Activate routePOST /api/v1/routes/{planId}/cancel- Cancel route
Alerts
Manage dispatcher alerts and notifications for proactive fleet management.
Key endpoints:
GET /api/v1/alerts- List active alertsPOST /api/v1/alerts/{id}/acknowledge- Acknowledge alertPOST /api/v1/alerts/{id}/resolve- Resolve alert
HOS Validation
The HOS compliance engine is an internal component of the route planner. It is not directly accessible as a standalone API. HOS validation runs automatically during route planning and continuous monitoring.
See Route Planning for how HOS compliance is enforced.
Response Format
All API responses follow this structure:
Success (200 OK)
{
"data": {
// Response data here
}
}Error (4xx, 5xx)
{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Rate Limits
- Staging keys: 1,000 requests/hour
- Production keys: 10,000 requests/hour
Rate limit headers:
X-RateLimit-Limit- Total requests allowedX-RateLimit-Remaining- Requests remainingX-RateLimit-Reset- Reset timestamp
Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Rate Limit Exceeded |
| 500 | Server Error |
Next Steps
- Authentication Guide - Learn how to authenticate
- API Playground - Test endpoints interactively
- Quickstart - Build your first integration