Get Routes
Changed onGet routes with pagination and optional filtering for unassigned routes and date range. Returns routes with their drive dates - routes can appear multiple times for different dates. When unassigned_only is False, returns all routes (no assignment filter). When unassigned_only is True, returns only routes that are unassigned for the given route group.
Requires a driver or admin caller. Admins may scope to any driver via driver_id (or omit it for all routes). Drivers are always scoped to their own routes: omitting driver_id returns their own routes, and requesting another driver's is rejected.
Request
- The document declares no server URL.
- Auth: HTTP bearer
Query parameters
If true, only return unassigned routes. If false, return all routes regardless of assignment status.
Filter route groups from this date
Filter route groups until this date
Order by drive_date: 'asc' (default, oldest-first) for the upcoming feed, 'desc' (most-recent-first) for the past feed.
Case-insensitive filter on the assigned driver's name, the route's name, or its route group's name
Filter by one or more weekdays of the drive date
Filter by one or more delivery types
Filter by one or more route statuses
Filter by one or more driver assignment statuses
Page number (1-indexed)
Number of items per page
Filter routes by assigned driver. Admins may pass any driver_id, or omit it to get all routes. Drivers are always scoped to themselves: omitting it returns their own routes, and passing another driver's id is rejected with 403.
Response
Successful Response
Changes
- info
endpoint added
- info