> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Get route

> Route detail after `list_routes`; the train numbers feed `train_status`, the stop codes feed `get_station`.

## 请求规范

* **方法与路径:** POST /apis/v1/amtrak-com/train-status/get-route
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/amtrak-com/train-status/get-route`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/amtrak-com.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "amtrak-com.train-status.get-route",
  "method": "POST",
  "path": "/apis/v1/amtrak-com/train-status/get-route",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "code": "NERG"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "code": {
              "description": "Route code from list_routes, e.g. NERG Pattern: ^[A-Za-z0-9]{2,8}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "name": {
              "description": "Exact route name, e.g. 'Coast Starlight' (case-insensitive)",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/amtrak-com.json POST /apis/v1/amtrak-com/train-status/get-route
openapi: 3.1.0
info:
  description: ''
  title: Amtrak
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    amtrak-com:
      description: ''
      title: Amtrak
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: a0454f59d4cf4fc71e7bdf3d5c68f6420d25a0f84c2ee6074f52fe18c098e398
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/amtrak-com/train-status/get-route
    - /apis/v1/amtrak-com/train-status/get-station
    - /apis/v1/amtrak-com/train-status/list-routes
    - /apis/v1/amtrak-com/train-status/list-stations
    - /apis/v1/amtrak-com/train-status/live-trains
    - /apis/v1/amtrak-com/train-status/search-stations
    - /apis/v1/amtrak-com/train-status/train-status
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:e6996c9bbabfe6b32ec794a729bf71dbc0447ef6111c8ed042b930f67acf0e81
    facts_hash: a0454f59d4cf4fc71e7bdf3d5c68f6420d25a0f84c2ee6074f52fe18c098e398
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: amtrak-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/amtrak-com/train-status/get-route:
    post:
      tags:
        - Amtrak
      summary: Get route
      description: >-
        Route detail after `list_routes`; the train numbers feed `train_status`,
        the stop codes feed `get_station`.
      operationId: amtrak-com.train-status.get-route
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  code: NERG
            schema:
              additionalProperties: true
              properties:
                code:
                  description: >-
                    Route code from list_routes, e.g. NERG Pattern:
                    ^[A-Za-z0-9]{2,8}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                name:
                  description: Exact route name, e.g. 'Coast Starlight' (case-insensitive)
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    cities_served: >-
                      Boston - New Haven - New York - Philadelphia - Wilmington
                      - Washington
                    code: NERG
                    name: Northeast Regional
                    observed_at_ms: 1790117621522
                    stops:
                      - code: NPN
                        name: Newport News, VA
                      - code: WBG
                        name: Williamsburg, VA
                      - code: RVM
                        name: Richmond, VA
                      - code: NFK
                        name: Norfolk, VA
                      - code: PTB
                        name: Petersburg, VA
                      - code: RVR
                        name: Richmond, VA
                      - code: ASD
                        name: Ashland, VA
                      - code: FBG
                        name: Fredericksburg, VA
                      - code: QAN
                        name: Quantico, VA
                      - code: WDB
                        name: Woodbridge, VA
                      - code: RNK
                        name: Roanoke, VA
                      - code: LYH
                        name: Lynchburg, VA
                      - code: CVS
                        name: Charlottesville, VA
                      - code: CLP
                        name: Culpeper, VA
                      - code: MSS
                        name: Manassas, VA
                      - code: BCV
                        name: Burke, VA
                      - code: ALX
                        name: Alexandria, VA
                      - code: WAS
                        name: Washington, DC
                      - code: NCR
                        name: New Carrollton, MD
                      - code: BWI
                        name: Baltimore, MD
                      - code: BAL
                        name: Baltimore, MD
                      - code: ABE
                        name: Aberdeen, MD
                      - code: NRK
                        name: Newark, DE
                      - code: WIL
                        name: Wilmington, DE
                      - code: PHL
                        name: Philadelphia, PA
                      - code: PHN
                        name: Philadelphia, PA
                      - code: TRE
                        name: Trenton, NJ
                      - code: PJC
                        name: Princeton Junction, NJ
                      - code: NBK
                        name: New Brunswick, NJ
                      - code: MET
                        name: Iselin, NJ
                      - code: EWR
                        name: Newark, NJ
                      - code: NWK
                        name: Newark, NJ
                      - code: NYP
                        name: New York, NY
                      - code: NRO
                        name: New Rochelle, NY
                      - code: STM
                        name: Stamford, CT
                      - code: BRP
                        name: Bridgeport, CT
                      - code: NHV
                        name: New Haven, CT
                      - code: STS
                        name: New Haven, CT
                      - code: WFD
                        name: Wallingford, CT
                      - code: MDN
                        name: Meriden, CT
                      - code: BER
                        name: Berlin, CT
                      - code: HFD
                        name: Hartford, CT
                      - code: WND
                        name: Windsor, CT
                      - code: WNL
                        name: Windsor Locks, CT
                      - code: SPG
                        name: Springfield, MA
                      - code: OSB
                        name: Old Saybrook, CT
                      - code: NLC
                        name: New London, CT
                      - code: MYS
                        name: Mystic, CT
                      - code: WLY
                        name: Westerly, RI
                      - code: KIN
                        name: West Kingston, RI
                      - code: PVD
                        name: Providence, RI
                      - code: RTE
                        name: Westwood, MA
                      - code: BBY
                        name: Boston, MA
                      - code: BOS
                        name: Boston, MA
                    train_numbers:
                      - '65'
                      - '66'
                      - '67'
                      - '82'
                      - '84'
                      - '85'
                      - '86'
                      - '87'
                      - '88'
                      - '93'
                      - '94'
                      - '95'
                      - '96'
                      - '99'
                      - '111'
                      - '120'
                      - '121'
                      - '122'
                      - '123'
                      - '124'
                      - '125'
                      - '126'
                      - '127'
                      - '129'
                      - '130'
                      - '131'
                      - '132'
                      - '133'
                      - '134'
                      - '135'
                      - '137'
                      - '138'
                      - '139'
                      - '149'
                      - '150'
                      - '151'
                      - '152'
                      - '153'
                      - '154'
                      - '155'
                      - '157'
                      - '158'
                      - '159'
                      - '160'
                      - '161'
                      - '162'
                      - '163'
                      - '164'
                      - '165'
                      - '166'
                      - '167'
                      - '168'
                      - '169'
                      - '170'
                      - '172'
                      - '173'
                      - '174'
                      - '175'
                      - '177'
                      - '178'
                      - '179'
                      - '180'
                      - '181'
                      - '182'
                      - '183'
                      - '184'
                      - '185'
                      - '186'
                      - '187'
                      - '189'
                      - '190'
                      - '192'
                      - '193'
                      - '194'
                      - '195'
                      - '196'
                      - '198'
                      - '1121'
                      - '1135'
                      - '1164'
                      - '1173'
                      - '1174'
                      - '1175'
                      - '1186'
                      - '1192'
                      - '1194'
                      - '1195'
                      - '1776'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One route by code (e.g. NERG) or exact name (e.g. Northeast
            Regional): cities served, ordered stops with station names, and the
            train numbers Amtrak maps to the route.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `cities_served` | string |  |

            | `code` | string |  |

            | `name` | string |  |

            | `observed_at_ms` | number |  |

            | `stops` | object[] | Ordered stops from stopslist.json; empty when
            the site publishes no stop list for this route |

            | `train_numbers` | string[] | Train numbers mapped to this route in
            TrainCodesResource.xml (ROUTES_TRAIN_NAMES_MAP); empty when none |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.