REST API
每个 MCP 工具背后都有一个可直接调用的 REST 端点。基础 URL: https://api.eqvps.com
GET /api/v1/eqvps/products
POST /api/v1/eqvps/auth/register
POST /api/v1/eqvps/auth/login
POST /api/v1/eqvps/auth/otp/request
POST /api/v1/eqvps/auth/otp/verify
POST /api/v1/eqvps/auth/set-password
GET /api/v1/eqvps/balance
POST /api/v1/eqvps/balance/topup
POST /api/v1/eqvps/orders
POST /api/v1/eqvps/invoices/{id}/pay
GET /api/v1/eqvps/services
GET /api/v1/eqvps/services/{id}
POST /api/v1/eqvps/services/{id}/power
POST /api/v1/eqvps/services/{id}/hostname
POST /api/v1/eqvps/services/{id}/reset-password
POST /api/v1/eqvps/services/{id}/reinstall
GET /api/v1/eqvps/services/{id}/metrics
GET /api/v1/eqvps/services/{id}/renew-options
POST /api/v1/eqvps/services/{id}/renew
POST /api/v1/eqvps/services/{id}/cancel
POST /api/v1/eqvps/services/{id}/cancel/undo需要身份验证的端点要求提供 Authorization: Bearer <token>。
续费与取消
# Renewal: 1, 3, 6 or 12 months
GET /api/v1/eqvps/services/{id}/renew-options
POST /api/v1/eqvps/services/{id}/renew {"months": 3}
# Cancel at the end of the paid period (default)
POST /api/v1/eqvps/services/{id}/cancel {"type": "end_of_period", "reason": "..."}
# Cancel now: the server and its data are deleted
POST /api/v1/eqvps/services/{id}/cancel {"type": "immediate", "confirm": "<hostname>", "reason": "..."}
# Withdraw a scheduled cancellation
POST /api/v1/eqvps/services/{id}/cancel/undo续费在预付余额足够时直接从余额扣除;否则响应中会返回用于支付账单的 checkout_url。renew-options 显示可选时长、价格和新的到期时间。取消需要填写原因 (reason):end_of_period(默认)会保留服务器到已付期限结束,immediate 会立即删除服务器及其数据,并且还需要用服务器的 hostname 填写 confirm。已安排的取消可通过 cancel/undo 撤回。
另见: REST API 快速入门
评论
暂无评论。来做第一个吧。