---
updatedAt: 2026-09-23T20:14:56.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Get Trip

Get a single trip by trip_id

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/singletrip": {
      "get": {
        "tags": [
          "SingleTrip"
        ],
        "summary": "Get Trip",
        "description": "Get a single trip by trip_id",
        "operationId": "get-singletrip",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "[required]",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trip_id",
            "in": "query",
            "description": "[required] your trip id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Trip",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_Trip2Model_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_Trip2Model_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_Trip2Model_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_Trip2Model_"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Returns a rich, detailed view of one trip (Trip2Model) looked up by its external trip_id, within the funding sources the api_key can access. Richer payload than GET rides/.",
        "x-ai-when-to-use": "You have a trip's external id and need the fullest detail available for it - richer than GET rides/. Wrapped in an ApiResponse envelope (403 in the body when the key lacks access).",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "ApiResponse containing a Trip2Model: pickup/dropoff events, rider, funding source, charges, and the TripGuid used by guid-based endpoints.",
        "x-ai-required-permission": "tripManagement",
        "x-ai-display": {
          "title": "Trip Details",
          "key": "trip_guid",
          "root": "Data",
          "columns": [
            {
              "field": "pickup.pickup_time",
              "header": "Pickup"
            },
            {
              "field": "dropoff.appt_time",
              "header": "Appointment"
            },
            {
              "field": "pickup.complete_address",
              "header": "Pickup Address"
            },
            {
              "field": "dropoff.complete_address",
              "header": "Dropoff Address"
            },
            {
              "field": "space_type",
              "header": "Space Type"
            },
            {
              "field": "total_trip_charge",
              "header": "Charge"
            },
            {
              "field": "TripStatus",
              "header": "Status"
            }
          ]
        },
        "x-ai-inputs": [
          {
            "name": "trip_id",
            "label": "Trip / Authorization Number",
            "control": "text"
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "properties": {
          "location_name": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "longitude": {
            "format": "double",
            "type": "number"
          },
          "latitude": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "Event": {
        "type": "object",
        "properties": {
          "event_name": {
            "type": "string"
          },
          "event_comment": {
            "type": "string"
          },
          "complete_address": {
            "type": "string"
          },
          "event_location": {
            "$ref": "#/components/schemas/Address"
          },
          "appt_time": {
            "format": "date-time",
            "type": "string"
          },
          "pickup_time": {
            "format": "date-time",
            "type": "string"
          },
          "phone_number": {
            "type": "string"
          },
          "service_id": {
            "format": "int32",
            "type": "integer"
          },
          "odometer": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "AdditionalPassenger": {
        "type": "object",
        "properties": {
          "space_type": {
            "type": "string"
          },
          "count": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "Trip2Model": {
        "required": [
          "funding_source_name",
          "tp_api_key",
          "trip_id",
          "rider_id",
          "pickup",
          "dropoff",
          "space_type",
          "trip_type"
        ],
        "type": "object",
        "properties": {
          "TripStatus": {
            "type": "string"
          },
          "funding_source_name": {
            "type": "string"
          },
          "funding_source_id": {
            "format": "int32",
            "type": "integer"
          },
          "trip_guid": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "tp_api_key": {
            "type": "string"
          },
          "trip_id": {
            "type": "string"
          },
          "rider_id": {
            "type": "string"
          },
          "pickup": {
            "$ref": "#/components/schemas/Event"
          },
          "dropoff": {
            "$ref": "#/components/schemas/Event"
          },
          "space_type": {
            "type": "string"
          },
          "billable_distance": {
            "format": "double",
            "type": "number"
          },
          "phone": {
            "type": "string"
          },
          "trip_type": {
            "format": "int32",
            "enum": [
              0,
              1,
              2,
              3
            ],
            "type": "integer"
          },
          "additional_passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdditionalPassenger"
            }
          },
          "caller": {
            "type": "string"
          },
          "total_trip_charge": {
            "format": "double",
            "type": "number"
          },
          "will_call_activation_time": {
            "format": "date-time",
            "type": "string"
          },
          "cancellation_reason": {
            "type": "string"
          },
          "driver_noshow_reason": {
            "type": "string"
          }
        }
      },
      "ApiResponse_Trip2Model_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/Trip2Model"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```