Watched addresses
Switch addresses on
POST /v1/webhook/addresses/activate switches up to 500 quiet addresses back on for free.
Overview
POST/v1/webhook/addresses/activate
POST/v1/webhook/addresses/{id}/activate
Switches on up to 500 watched addresses at once. Addresses that are already on are returned as they are. It never charges credits and never adds new addresses.
Body
Give ids, addresses, or both. The single-ID route takes no body.
| Field | Required | Description |
|---|---|---|
| ids | No | Address IDs (whsub_…). |
| addresses | No | Objects with chainId and address, for when you did not store IDs. |
Request
Request
curl -sS -X POST "https://webhooks.gray3.io/v1/webhook/addresses/activate" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_whk_your_webhook_key" \
-H "Content-Type: application/json" \
-d '{
"addresses": [
{ "chainId": "base", "address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72" }
]
}'Response
HTTP 200 — success envelope wraps the payload in data.
json
{
"data": {
"items": [ … address objects, now with "status": "active" … ],
"activated": 1
}
}activated counts only the addresses that were off and are now on.
Errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| invalid_argument | 400 | Neither ids nor addresses given, or more than 500 |
| not_found | 404 | None of the given addresses are watched by this project |
json
{
"error": {
"code": "invalid_argument",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}