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

# Get Route By Date And Route Id

Get details for a route for a selcted date and route id

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/route/getRouteByDateAndRouteId": {
      "get": {
        "tags": [
          "Route"
        ],
        "summary": "Get Route By Date And Route Id",
        "description": "Get details for a route for a selcted date and route id",
        "operationId": "get-route-by-date-and-route-id",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "route_date",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "route_id",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Route",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouteModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouteModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RouteModel"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RouteModel"
                }
              }
            }
          },
          "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 one route identified by its route_id on a specific date, within the api_key's transportation provider.",
        "x-ai-when-to-use": "You already know the route_id (from getRoutesByDate/Range) and need just that route's current details.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "A single RouteModel: driver/vehicle assignment and the ordered stops for that date.",
        "x-ai-required-permission": "dispatch",
        "x-ai-display": {
          "title": "Route Details",
          "key": "route_id",
          "columns": [
            {
              "field": "route_name",
              "header": "Route"
            },
            {
              "field": "employee_name",
              "header": "Driver"
            },
            {
              "field": "vehicle_name",
              "header": "Vehicle"
            },
            {
              "field": "scheduled_pull_out",
              "header": "Sch Pull-Out"
            },
            {
              "field": "actual_pull_out",
              "header": "Actual Pull-Out"
            },
            {
              "field": "scheduled_pull_in",
              "header": "Sch Pull-In"
            },
            {
              "field": "actual_pull_in",
              "header": "Actual Pull-In"
            },
            {
              "field": "total_miles",
              "header": "Total Miles"
            }
          ]
        },
        "x-ai-inputs": [
          {
            "name": "route_id",
            "label": "Route",
            "control": "select",
            "options": {
              "operation": "get-routes-by-date",
              "valueField": "route_id",
              "labelTemplate": "{route_name} — {employee_name}",
              "args": "route_date={route_date}"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "RouteModel": {
        "type": "object",
        "properties": {
          "route_id": {
            "format": "int32",
            "type": "integer"
          },
          "route_name": {
            "type": "string"
          },
          "employee_id": {
            "format": "int32",
            "type": "integer"
          },
          "employee_name": {
            "type": "string"
          },
          "vehicle_id": {
            "format": "int32",
            "type": "integer"
          },
          "vehicle_name": {
            "type": "string"
          },
          "scheduled_pull_out": {
            "format": "date-time",
            "type": "string"
          },
          "actual_pull_out": {
            "format": "date-time",
            "type": "string"
          },
          "pull_out_lat": {
            "format": "double",
            "type": "number"
          },
          "pull_out_lon": {
            "format": "double",
            "type": "number"
          },
          "scheduled_pull_in": {
            "format": "date-time",
            "type": "string"
          },
          "actual_pull_in": {
            "format": "date-time",
            "type": "string"
          },
          "pull_in_lat": {
            "format": "double",
            "type": "number"
          },
          "pull_in_lon": {
            "format": "double",
            "type": "number"
          },
          "from_garage_address": {
            "type": "string"
          },
          "from_garage_address1": {
            "type": "string"
          },
          "from_garage_city": {
            "type": "string"
          },
          "from_garage_state": {
            "type": "string"
          },
          "from_garage_zip": {
            "type": "string"
          },
          "from_garage_lat": {
            "format": "double",
            "type": "number"
          },
          "from_garage_lon": {
            "format": "double",
            "type": "number"
          },
          "to_garage_address": {
            "type": "string"
          },
          "to_garage_address1": {
            "type": "string"
          },
          "to_garage_city": {
            "type": "string"
          },
          "to_garage_state": {
            "type": "string"
          },
          "to_garage_zip": {
            "type": "string"
          },
          "to_garage_lat": {
            "format": "double",
            "type": "number"
          },
          "to_garage_lon": {
            "format": "double",
            "type": "number"
          },
          "odometer_begin": {
            "format": "int32",
            "type": "integer"
          },
          "odometer_end": {
            "format": "int32",
            "type": "integer"
          },
          "total_miles": {
            "format": "int32",
            "type": "integer"
          },
          "driver_signature": {
            "type": "string"
          },
          "drivers_license": {
            "type": "string"
          },
          "vin": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```