续期Edge注册token¶
持有者协议,无产品身份包装。拒绝临时eph执行器;以runner-前缀选择Runner绑定,否则按Sandbox绑定检查。续期原子吊销旧凭据并更新绑定,响应为数值code0;
POST https://api.moi.matrixorigin.cn/v5/edge-tokens/renew
调用前准备¶
BASE_URL 使用产品 API 前缀 https://api.moi.matrixorigin.cn/v5;专有部署填写对应的产品 API 地址。
请求¶
curl --request POST \
"$BASE_URL/edge-tokens/renew" \
--header "Content-Type: application/json" \
--data @- <<JSON
{"token": "${EDGE_TOKEN}"}
JSON
参数 |
位置 |
类型 |
必填 |
说明 |
|---|---|---|---|---|
|
请求体 |
string |
是 |
当前有效且JTI仍匹配的Edge注册token;不是产品PAT、访客session或任务RuntimeGrant。 |
成功响应¶
{
"code": 0,
"data": {
"token": "example-fresh-edge-token",
"expires_at": "2026-12-12T01:00:00Z"
}
}
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
成功为0。 |
|
object |
错误响应¶
错误与恢复边界区分Runner、Edge续期及计算观测;不共用同一数值错误表。
最后更新于