Skip to content

get_active_trips

Status: Verified | Module: trip

List the member’s active (non-completed) trips. Returns the lean per-trip summary (ids, addresses, scheduled times, status) by default. Defaults to 10 trips, max 20 (use limit to adjust).

For full details on a single trip, call get_trip_status with the trip_id from this list.

Per-trip enrichment is opt-in — driver, vehicle, GPS, and ETA fields are OFF by default to keep the response small. Set them ONLY for dispatcher-style flows that need that data for every listed trip:

Flag Default Description
include_driver false Adds driver = {name, phone} per trip when assigned
include_vehicle false Adds vehicle = {make, model, license_plate} per trip when assigned
include_gps false Adds gps = {latitude, longitude} per trip in real time
include_eta false Adds eta (e.g. “12 minutes”) per trip

Each enrichment call costs an extra trip-service round-trip per trip — leave them off when reading a list of trips for the member to choose from.

Hint Value
readOnlyHint true
Field Type Required Description
session_id string yes Active session from verify_member
limit int no Max trips to return (default 10, max 20). Values above 20 are clamped.
filter string no will_call (only will-call trips) or upcoming (future trips only). Omit for all active trips.
trip_id string no Filter by specific trip UUID
friendly_id string no Filter by human-readable trip ID (e.g. 04-15-2026-0001-A)
include_driver bool no Enrich each trip with driver info (default false)
include_vehicle bool no Enrich each trip with vehicle info (default false)
include_gps bool no Enrich each trip with real-time GPS (default false)
include_eta bool no Enrich each trip with ETA (default false)
Field Type Description
trips ActiveTrip[] Active trips (capped by limit, default 10, max 20)
total_count int Total matching trips before truncation
truncated bool true if results were capped
Field Type Description
trip_id string Trip UUID
trip_friendly_id string Human-readable trip ID (e.g. 04-15-2026-0001-A)
confirmation_number string Human-readable confirmation
status string scheduled, dispatched, en_route, arrived, in_progress
pickup_address string Formatted address
dropoff_address string Formatted address
pickup_time string ISO 8601
appointment_time string ISO 8601
transport_mode string Canonical code
is_will_call bool Whether this is a will-call return leg
driver object {name, phone} — present only when include_driver=true AND assigned
vehicle object {make, model, license_plate} — present only when include_vehicle=true AND assigned
gps object {latitude, longitude} — present only when include_gps=true
eta string Estimated arrival (e.g. “12 minutes”) — present only when include_eta=true
{
"status": "success",
"data": {
"trips": [
{
"trip_id": "trip-uuid-001",
"trip_friendly_id": "04-08-2026-0001-A",
"confirmation_number": "NEMT-2026-04-08-001",
"status": "en_route",
"pickup_address": "123 Main St, Springfield, IL 62701",
"dropoff_address": "456 Health Ave, Springfield, IL 62701",
"driver": {"name": "Mike S.", "phone": "555-987-6543"},
"vehicle": {"make": "Ford", "model": "Transit", "license_plate": "IL-ABC1234"},
"gps": {"latitude": 39.7817, "longitude": -89.6501},
"eta": "12 minutes"
}
],
"total_count": 1,
"truncated": false
}
}