GATH Agent Rate API — 1.0.0
Base URL: https://api.gathlogistics.com. This is the deployed read-only rate API, not the former WordPress REST namespace.
Verified scope
GET service metadata, health, rate lookup and rate statistics. Quote creation, bulk quotes, order creation and status updates are not implemented by this service. Do not send production write requests based on the old documentation.
Read-only quick start
curl --fail-with-body https://api.gathlogistics.com/health
curl --fail-with-body https://api.gathlogistics.com/rates \
-H "Authorization: Bearer ${GATH_API_KEY}"
Obtain an authorized existing key from GATH. Never put the key in a browser, URL, repository or analytics event. Portal login cookies are not API credentials.
Product policy
Daily reports (D1) serve all logged-in users; portal rates (D2) remain available to all users. External API reads still require Bearer authorization. Orders are retired; spot-rate-request and new-energy features are withdrawn pending redesign, with historical records and imports retained. Legacy CMS is retired, not an API target. No universal BAF/CAF surcharge formula is supported. The former wp-json/gath/v2 contract is not implemented here.
Machine-readable contract mirror · Main-site AI guide
Evidence and limits
Checked on 2026-10-29 (Asia/Shanghai): deployed source /srv/gath/agent-api/server.js, public metadata version 1.0.0, and authenticated read-only GET responses. No key or order was created. Anonymous 401 alone does not prove a route exists: the authentication guard also returns 401 for unknown URLs.
The old /wp-json/gath/v1/services returned authenticated 404 on this API host. Former quote/order routes are absent from its deployed handler. This does not establish the state of any retired WordPress installation. Portal /api/* endpoints are a separate session-authenticated application, not this external contract.
Rate availability and counts change. Schema notes describe observed data, not guaranteed required fields. Health reports process availability, not data freshness: the current implementation returns an empty rate list if its rate file cannot be read.
GATH 运价 API — 1.0.0
基础地址:https://api.gathlogistics.com。当前部署的是只读运价 API,不是旧 WordPress REST 命名空间。
已核验能力
GET 服务元数据、健康检查、运价查询及运价统计。当前服务未实现单条/批量报价创建、订单创建或状态更新;不要依据旧文档向生产发写请求。
只读快速开始
curl --fail-with-body https://api.gathlogistics.com/health
curl --fail-with-body https://api.gathlogistics.com/rates \
-H "Authorization: Bearer ${GATH_API_KEY}"
向 GATH 获取已授权凭据;不要将密钥放入浏览器、URL、代码仓库或统计事件。门户登录 Cookie 不能替代 API 密钥。
产品及访问政策
D1 日报面向全部已登录用户,D2 门户运价面向全体用户;外部 API 仍需 Bearer 授权。订单流程退役,即期询价及新能源功能下架待重设,历史记录和导入保留。旧 CMS 退役,不是 API 入口;旧 wp-json/gath/v2 契约未在当前服务实现。不发布固定 BAF/CAF 附加费公式。
核验依据及边界
2026-10-29(上海时区)核对了已部署源码 /srv/gath/agent-api/server.js、公开元数据版本 1.0.0 及已鉴权的只读 GET 响应。未创建密钥、订单或发送业务写请求。匿名 401 不能证明路由存在:未知 URL 也会先经过认证守卫返回 401。
旧 /wp-json/gath/v1/services 在当前 API 主机上已鉴权 GET 返回 404,旧报价/订单路由也未在当前处理器实现;不据此断言退役 WordPress 实例的状态。门户 /api/* 属于独立会话应用,不是此外部 API 契约。
运价及数量会变;字段说明是已观察数据,不是必填保证。健康接口只说明进程可响应,不保证数据新鲜;当前实现读取运价文件失败时会返回空列表。