API GuidesOverview

API Guides

These guides help you integrate SALLY’s API into your fleet management systems. Whether you are planning routes, managing drivers and vehicles, or subscribing to real-time alerts, you will find step-by-step instructions and working examples here.

Base URL

EnvironmentBase URL
Developmenthttp://localhost:8000/api/v1/
Staginghttps://staging.sally.appshore.in/api/v1/
Productionhttps://your-instance.sally.appshore.in/api/v1/

All endpoints documented in these guides are relative to the base URL. For example, POST /routes/plan means POST https://your-instance.sally.appshore.in/api/v1/routes/plan.

Authentication

Every request must include a Bearer token in the Authorization header:

curl -X GET https://your-instance.sally.appshore.in/api/v1/drivers \
  -H "Authorization: Bearer YOUR_API_TOKEN"

See Getting Started > Authentication for instructions on obtaining your token.

Guide Map

GuideWhat You Will Learn
Route PlanningPlan, optimize, and manage routes with full HOS compliance. Create routes, insert rest and fuel stops, update routes dynamically.
Fleet ManagementManage drivers, vehicles, and loads. Create and update resources, query status, handle assignments.
Alerts and MonitoringSubscribe to real-time alerts, handle monitoring events, acknowledge and resolve dispatcher notifications.
IntegrationsConnect external services — ELD providers, TMS platforms, fuel price feeds, and weather data sources.
Multi-tenancySet up tenants, manage users and roles, configure tenant-specific settings.

Response Format

All responses return JSON.

Successful Responses

Successful requests return the resource or collection directly:

{
  "id": "route_abc123",
  "status": "planned",
  "stops": [ ... ],
  "createdAt": "2026-02-10T14:30:00Z"
}

List endpoints return an array with pagination metadata:

{
  "data": [ ... ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 47
  }
}

Error Responses

Errors return a consistent structure:

{
  "statusCode": 422,
  "message": "Validation failed: origin is required",
  "error": "Unprocessable Entity"
}

Common status codes:

CodeMeaning
400Bad request — malformed JSON or missing required fields
401Unauthorized — missing or invalid Bearer token
403Forbidden — valid token but insufficient permissions
404Not found — resource does not exist
422Validation error — request body failed validation
429Rate limited — too many requests, back off and retry
500Server error — unexpected failure, contact support

Pagination

List endpoints accept page and limit query parameters:

GET /api/v1/drivers?page=2&limit=50
ParameterDefaultMaximumDescription
page1Page number (1-indexed)
limit20100Items per page

Interactive Testing

Use the API Playground to test endpoints directly in your browser with live request and response previews.

Next Steps

If you are new to SALLY, start with the Route Planning guide — it covers the core workflow that most integrations build on.