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

# Get Existing Service Ids On Route

Returns the service ids currently assigned to a route.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/route/getExistingServiceIdsOnRoute": {
      "get": {
        "tags": [
          "Route"
        ],
        "summary": "Get Existing Service Ids On Route",
        "description": "Returns the service ids currently assigned to a route.",
        "operationId": "get-existing-service-ids-on-route",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "routeId",
            "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": "result message"
          },
          "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 the service ids currently assigned to one route (by routeId), within the api_key's transportation provider.",
        "x-ai-when-to-use": "Before or after PUT route/saveRoute - to see what services a route already carries.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "Array of integer service ids on the route.",
        "x-ai-required-permission": "dispatch",
        "x-ai-display": {
          "title": "Service IDs on Route",
          "columns": []
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```