webhookRotate
Replaces the secret a webhook channel signs pushes with. The old secret stops signing at once.
Cost: Free. Signed by the box's agent over method
POST, path/agent/v1/<address lowercased>/webhook/<id>/rotateand no body (the hash of no bytes). Or send anARCGATE-KEYof the account the box is linked to, with no signature. Another account's key, or any key for a box that is not linked, does not apply to the box: the call is checked as if no key were sent, so it needs the signature. A key nobody holds is a 401key_invalid. The key keeps working after the account has lapsed (its grace has ended).Inputs:
addressandid(path). No body.Returns: the
idand the newsecret. The secret is shown only now: give it to the receiver.Errors:
404
webhook_not_found: the box has no webhook channel with that id.
Next:
webhookList: see each channel's delivery state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webhook channel's id: 22 base64url characters, as the create or the list returned it. | |
| address | Yes | The box's address: the agent's own address (an EOA or an EIP-7702 account), any letter case. The box is keyed by it, and a signed request must be signed by it. | |
| agentSignature | No | The agent's EIP-712 signature over this request, as the AGENT-SIGNATURE, AGENT-NONCE and AGENT-EXPIRY headers carry it over HTTP. Sign the typed data `AgentRequest` with fields `address` (the box), `method`, `path`, `bodyHash`, `nonce` and `expiry`, under the domain {name: "arcgate", version: "1"} with no chainId (a wallet that can only sign with one, such as Circle's, may add the chainId of the chain this deployment serves, 5042 on Arc mainnet, and no other). The `path` is the request path with every parameter filled in and the address lowercased. The `bodyHash` is the keccak256 of the canonical JSON of the body you send (sorted keys, no whitespace), or of no bytes when there is none. Omitting it is a 401 signature_required unless an ARCGATE-KEY of the account the box is linked to is sent (over MCP, on the connection), and it is never a charge: the call is free. |