# SmartRoutes Webhooks API

**Canonical:** https://apis.io/apis/smartroutes-io/smartroutes-io-webhooks-api/  
**Provider:** SmartRoutes — https://apis.io/providers/smartroutes-io/  
**Base URL:** https://api.smartroutes.io/v2/  
**Documentation:** https://smartroutes.io/api

SmartRoutes Webhooks API is one of 16 APIs that [SmartRoutes](https://apis.io/providers/smartroutes-io/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Webhook. The published artifact set on APIs.io includes an OpenAPI specification.

Configure a webhook receiver URL in your depot settings and SmartRoutes will deliver event notifications as they happen. Ten event types are emitted, each documented below with its payload schema and an example delivery: | Event | Type ID | Fires when | |---|---|---| | [orders.status](#tag/Webhooks/operation/orders.status) | 2 | An order's status changes (line-item or order-level transition) | | [routes.dispatched](#tag/Webhooks/operation/routes.dispatched) | 3 | A route is dispatched (published to its driver). | | [plans.created](#tag/Webhooks/operation/plans.created) | 4 | A Plan row is persisted (after `POST /plans/optimise/orders` or `/orders-for-ids`). Fires *before* optimisation completes. | | [plans.dispatched](#tag/Webhooks/operation/plans.dispatched) | 5 | A Plan is dispatched (routes published to drivers). | | [routes.edited](#tag/Webhooks/operation/routes.edited) | 6 | A dispatched route is edited (re-ordering stops, etc.) | | [routes.deleted](#tag/Webhooks/operation/routes.deleted) | 7 | One or more dispatched routes are deleted (typically as part of solution replacement) | | [routes.completed](#tag/Webhooks/operation/routes.completed) | 8 | A dispatched route is completed by the driver. | | [plans.deleted](#tag/Webhooks/operation/plans.deleted) | 9 | A Plan row is destroyed | | [orders.on_delivery](#tag/Webhooks/operation/orders.on_delivery) | 10 | A stop enters its on-delivery ETA window on a dispatched route (the arriving-soon signal). | | [orders.will_miss_window](#tag/Webhooks/operation/orders.will_miss_window) | 11 | A delivery stop's live ETA passes the end of its time window by more than the depot's grace. Once per order per stop. | # Delivery envelope Each event is delivered as an `HTTP POST` to the receiver URL configured in your depot settings. The request body is always a JSON object of shape: ```text { "type": <event type string>, "data": <payload object for that event type> } ``` The `data` field is the payload object for a single event — NOT an array. Bulk operations (e.g. order-status changes from a route delete) fan out into one POST per event, each with its own `data` object. # Delivery headers Outgoing requests carry `Content-Type: application/json` and an HTTP Basic `Authorization` header derived from the username/password you supplied when configuring the webhook. No HMAC signature header is sent; treat the basic-auth credentials as the integrity check and rotate them if compromised. # Timeout and retries Each delivery has a server-side request timeout of **3 seconds**. On failure (HTTP error, timeout, or connection error) the delivery is retried up to **3 times total**; after the third failure the task is marked permanently `ERROR` and not retried again. Your receiver should respond `2xx` quickly — slow receivers will be treated as failures. # Machine-readable schemas The delivery envelope and per-event payloads are also defined under `#/components/schemas/`: `WebhookDelivery`, `WebhookOrdersStatusPayload`, `WebhookPlanIdPayload`, `WebhookRouteIdPayload`, `WebhookOnDeliveryPayload`, `WebhookWillMissWindowPayload`. Reference these from your own integration's tests / contract tools to catch shape drift early.

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/smartroutes-io/openapi/smartroutes-io-webhooks-api-openapi.yml

## Other SmartRoutes APIs (12)

- [SmartRoutes Booking API](https://apis.io/apis/smartroutes-io/smartroutes-io-booking-api/)
- [SmartRoutes Capacities API](https://apis.io/apis/smartroutes-io/smartroutes-io-capacities-api/)
- [SmartRoutes Custom Fields API](https://apis.io/apis/smartroutes-io/smartroutes-io-custom-fields-api/)
- [SmartRoutes Customers API](https://apis.io/apis/smartroutes-io/smartroutes-io-customers-api/)
- [SmartRoutes Driver Questionnaires API](https://apis.io/apis/smartroutes-io/smartroutes-io-driver-questionnaires-api/)
- [SmartRoutes Notification Tasks API](https://apis.io/apis/smartroutes-io/smartroutes-io-notification-tasks-api/)
- [SmartRoutes Notifications API](https://apis.io/apis/smartroutes-io/smartroutes-io-notifications-api/)
- [SmartRoutes Order Statuses API](https://apis.io/apis/smartroutes-io/smartroutes-io-order-statuses-api/)
- [SmartRoutes Orders API](https://apis.io/apis/smartroutes-io/smartroutes-io-orders-api/)
- [SmartRoutes Plans API](https://apis.io/apis/smartroutes-io/smartroutes-io-plans-api/)
- [SmartRoutes Proof of Delivery API](https://apis.io/apis/smartroutes-io/smartroutes-io-proof-of-delivery-api/)
- [SmartRoutes Routes API](https://apis.io/apis/smartroutes-io/smartroutes-io-routes-api/)

## Tags

Webhook

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/smartroutes-io` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/smartroutes-io/smartroutes-io-webhooks-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/smartroutes-io/.
