SmartRoutes Plans API

The Plans API from SmartRoutes — 6 operation(s) for plans.

GitHub OpenAPI

Operations 7

POST /plans/{id}/dispatch Dispatch a Plan #
POST /plans/optimise/orders Optimise Orders #
POST /plans/optimise/orders-for-ids Optimise Orders For IDs #
GET /plans/optimise/{id} Get Optimisation Job by ID #
GET /plans/{id} Get Plan by ID #
DELETE /plans/{id} Delete Plan by ID #
GET /plans Get Plans Page #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smartroutes-io:smartroutes-io-plans-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smartroutes-io-plans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SmartRoutes Plans API
  description: '# Getting started


    ## Introduction


    The SmartRoutes API gives your software programmatic access to the SmartRoutes platform. You can manage the full delivery lifecycle from your own systems. Push orders and customers in from your ERP, e-commerce or WMS. Keep your fleet, capacities and zones in sync. Run route optimisation and dispatch plans to drivers. Then pull back what happened on the road: order statuses, proof of delivery photos and signatures, and driver questionnaire responses. The API also handles customer notifications and booking availability checks. Webhooks notify your systems in real time when orders change status, plans are dispatched or routes are completed. It''s a REST API over HTTPS that uses JSON and authenticates with an access key, which you generate in SmartRoutes under Settings > Integrations. ## Base URL


    Every endpoint path in this reference is relative to this base URL:


    https://api.smartroutes.io/v2


    So `GET /orders` in this reference means `GET https://api.smartroutes.io/v2/orders`. **The documentation host is not the API host.** These docs are published at `smartroutes.io/api`, which serves this page and the OpenAPI spec only. Requests sent there do not reach the API — send them to the base URL above. ## Authentication


    To use the API, you will need to generate an API Access Key for your SmartRoutes account. To generate, login to your SmartRoutes account and navigate to Settings > Integrations > SmartRoutes Open API and click ''Generate API Key''. For more details on SmartRoutes integrations, click here. All requests expect the API Access Key to be provided in the `x-access-key` header:


    ```http

    x-access-key: YOUR_ACCESS_KEY

    ```


    Two optional request headers are also recognised: `x-sr-api-features`, accepted on every endpoint (see API Features), and `idempotency-key`, honoured on the `POST` endpoints listed under Idempotency. Webhook deliveries from SmartRoutes to your receiver are authenticated differently — see Webhooks. ## Rate Limits


    Every endpoint has a per-minute limit, and most also have a short burst limit. Requests are rejected as soon as either limit is hit. Most endpoints fall into one of these tiers:


    | Tier | Rate limit | Description |

    |---|---|---|

    | Standard | 60 / min (max 5 / sec) | Single-resource reads and writes (e.g. `GET /orders/{id}`, `PUT /orders/{id}`) |

    | Listing | 30 / min (max 5 / sec) | Paginated lists (e.g. `/customers`, `/plans`, `/routes`) |

    | Reference | 60 / min (max 1 / sec) | Reference data (e.g. capacities, custom fields, vehicles, zone groups) |

    | Bulk | 30 / min (max 1 per 2 sec) | Bulk creates and heavy deletes |

    | Upload | 15 / min (max 1 / sec) | File uploads (e.g. `POST /orders/{id}/attachments`) |


    The following endpoints have a stricter limit of **5 / min (max 2 per 15 sec)**:


    - Plan optimisation: `POST /plans/optimise/orders`, `POST /plans/optimise/orders-for-ids`

    - Booking availability: `POST /booking/availability`, `POST /booking/available-dates`, `POST /booking/available-slots`

    - Route reversal: `POST /routes/{id}/reverse`


    The two dispatch endpoints have the Standard per-minute allowance with a tighter burst, **60 / min (max 2 per 2 sec)**, because each call blocks for the full dispatch (up to two minutes):


    - `POST /routes/{id}/dispatch`

    - `POST /plans/{id}/dispatch`


    When a limit is hit, the API returns HTTP **403** with a `Retry-After` header and `details.retry_after_seconds` in the body — both give the seconds until the limit resets. **Prefer `429`?** `403` is the status this API has always returned for rate limiting, and it stays the default so existing integrations keep working. Send `x-sr-api-features: rate-limit-429` and a tripped limit answers `429 Too Many Requests` with `name: "RATE_LIMIT_EXCEEDED"` instead. Nothing else about the response changes — `Retry-After` and `details.retry_after_seconds` are already sent on the `403`. See API Features. We may temporarily reduce these limits to protect platform stability.'
  version: 2.0.0
  contact:
    name: SmartRoutes Support
    email: support@smartroutes.io
    url: https://smartroutes.io/support
servers:
- url: https://api.smartroutes.io/v2/
  description: API base URL — every path in this reference is relative to it.
tags:


# --- truncated at 32 KB (70 KB total) ---
# Full source: https://artifacts.apis.io/smartroutes-io/openapi/smartroutes-io-plans-api-openapi.yml