<span id="续期edge注册token"></span>

# Renew an Edge registration token

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Holder protocol without a product identity wrapper. Rejects ephemeral eph executors. runner- prefix selects Runner binding; otherwise Sandbox binding is checked. Renewal atomically revokes old credentials and updates binding. Response uses numeric code 0.


```http
POST https://api.moi.matrixorigin.cn/v5/edge-tokens/renew
```

<span id="调用前准备"></span>

## Before you call this API

`BASE_URL` uses the product API prefix `https://api.moi.matrixorigin.cn/v5`. For a dedicated deployment, use its corresponding product API address.

[Prepare identity and identifiers](objects.md#prepare).

<span id="请求"></span>

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --request POST \
  "$BASE_URL/edge-tokens/renew" \
  --header "Content-Type: application/json" \
  --data @- <<JSON
{"token": "${EDGE_TOKEN}"}
JSON
```

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `token` | Body | string | Yes | Current valid Edge registration token with matching JTI, not a product PAT, visitor session, or task RuntimeGrant. |

:::::
::::::
:::::::

<span id="成功响应"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": 0,
  "data": {
    "token": "example-fresh-edge-token",
    "expires_at": "2026-12-12T01:00:00Z"
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | integer | 0 on success. |
| `data` | object | [Response objects and omission rules](objects.md#responses). |

:::::
::::::
:::::::

<span id="错误响应"></span>

## Error response

[Errors and recovery boundaries](lifecycle.md#errors) distinguishes Runner, Edge renewal, and compute observations. They do not share one numeric error table.
