API文档
认证方式
所有API请求需要在Header中携带以下参数:
X-Api-Key: 您的API Key
X-Timestamp: 当前Unix时间戳(秒)
X-Signature: HMAC-SHA256签名
签名算法
message = timestamp + method + path + body
signature = HMAC-SHA256(message, api_secret)
接口列表
| 接口 | 方法 | 说明 |
|---|---|---|
| /api/open/user/info | GET | 获取用户信息 |
| /api/open/domains | GET | 获取可购买域名 |
| /api/open/subdomains | GET | 获取子域名列表 |
| /api/open/subdomains | POST | 购买子域名 |
| /api/open/subdomains/{id} | DELETE | 删除子域名 |
| /api/open/subdomains/{id}/renew | POST | 续费子域名 |
| /api/open/subdomains/{id}/records | GET/POST | DNS记录管理 |
| /api/open/dns-records/{id} | PUT/DELETE | 更新/删除记录 |
验证密码
重置API密钥
重置后旧密钥将立即失效,请确保已更新所有使用该密钥的应用。
API密钥已生成
请立即保存Secret,关闭后将无法再次查看!