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

# Get Rider by Phone Number

Passing in a 10 digit phone number returns one or more rider/passenger/patient details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/riders/getByPhoneNumber": {
      "get": {
        "tags": [
          "Riders"
        ],
        "summary": "Get Rider by Phone Number",
        "description": "Passing in a 10 digit phone number returns one or more rider/passenger/patient details.",
        "operationId": "get-riderbyphonenumber",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "phone_number",
            "in": "query",
            "description": "",
            "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": "Rider",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RiderResponseModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RiderResponseModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RiderResponseModel"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RiderResponseModel"
                }
              }
            }
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Finds riders whose phone number matches the supplied 10-digit phone_number, within the transportation provider resolved from the api_key.",
        "x-ai-when-to-use": "The user identifies a rider by phone number (e.g. a caller), or you need to disambiguate which rider record belongs to a phone number before booking or checking trips.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "Array of matching rider records (multiple riders can share a phone number). Each includes the external rider id and internal MediRoutes rider id for follow-up calls.",
        "x-ai-required-permission": "tripManagement",
        "x-ai-display": {
          "title": "Riders Matching {phone_number}",
          "key": "mediroutes_rider_id",
          "columns": [
            {
              "field": "last_name",
              "header": "Last Name"
            },
            {
              "field": "first_name",
              "header": "First Name"
            },
            {
              "field": "date_of_birth",
              "header": "DOB"
            },
            {
              "field": "phone",
              "header": "Phone"
            },
            {
              "field": "mobile_phone",
              "header": "Mobile"
            },
            {
              "field": "space_type",
              "header": "Space Type"
            },
            {
              "field": "funding_source_name",
              "header": "Funding Source"
            },
            {
              "field": "address.address1",
              "header": "Address"
            },
            {
              "field": "address.city",
              "header": "City"
            },
            {
              "field": "email",
              "header": "Email"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "RiderResponseModel": {
        "required": [
          "rider_id",
          "first_name",
          "last_name",
          "space_type"
        ],
        "type": "object",
        "properties": {
          "mediroutes_rider_id": {
            "format": "int32",
            "description": "The Internal id of Mediroutes Rider, this Id is unique per Transportation provider",
            "type": "integer"
          },
          "funding_source_id": {
            "format": "int32",
            "description": "The ID of the Funding Source of the Customer",
            "type": "integer"
          },
          "funding_source_name": {
            "description": "The Name of the Funding Source of the Customer",
            "type": "string"
          },
          "tp_api_key": {
            "description": "The Transportation provider API Key",
            "type": "string"
          },
          "rider_id": {
            "description": "The unique id of the Customer",
            "type": "string"
          },
          "first_name": {
            "description": "The First Name of the Customer",
            "type": "string"
          },
          "last_name": {
            "description": "The Last Name of the Customer",
            "type": "string"
          },
          "middle_name": {
            "description": "The Middle Name of the Customer",
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "phone": {
            "description": "The Phone Number of the customer",
            "type": "string"
          },
          "space_type": {
            "description": "The Space Type of the Customer",
            "type": "string"
          },
          "home_phone": {
            "description": "The Home phone number of the customer",
            "type": "string"
          },
          "mobile_phone": {
            "description": "The Mobile phone number of the customer",
            "type": "string"
          },
          "icd_10_codes": {
            "description": "The ICD10Code of the customer",
            "type": "string"
          },
          "date_of_birth": {
            "description": "The DateOfBirth of the Customer",
            "type": "string"
          },
          "is_male": {
            "description": "Is Male gender",
            "type": "boolean"
          },
          "is_Female": {
            "description": "Is Female gender",
            "type": "boolean"
          },
          "comments": {
            "description": "Comments for the rider",
            "type": "string"
          },
          "private_comments": {
            "description": "Private comments for the rider",
            "type": "string"
          },
          "email": {
            "description": "Email for rider",
            "type": "string"
          }
        }
      },
      "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"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```