PATCH is the recommended way to modify specific addresses without touching the rest of the subscription’s filter list. You can add and remove addresses in a single atomic request — if the operation fails, no partial changes are applied. The response includes a per-item breakdown so you know exactly what happened to each address you submitted.Documentation Index
Fetch the complete documentation index at: https://docs.offthehook.dev/llms.txt
Use this file to discover all available pages before exploring further.
Request
Path parameters
The subscription ID (e.g.
sub_2QkP9aB7xN...).Body
Address objects to add to the subscription’s filter list. Each object must include
chainId and address. At least one of add or remove should be non-empty.Address objects to remove from the subscription’s filter list. Same shape as
add. Items that are not currently in the subscription are returned in results.skipped with reason: "not_found".Response
200 OK —PatchAddressesResponse containing the updated subscription and a per-item result breakdown.
The full updated subscription resource, reflecting the state after the patch has been applied.
Address objects that were successfully added.
Address objects that were successfully removed.
Address objects that could not be processed. Each skipped item includes the original
input, a reason code (not_found, invalid_address, invalid_chain, chain_not_enabled), and an optional detail string with a human-readable explanation.Errors
| Code | HTTP | Description |
|---|---|---|
not_found | 404 | The subscription ID does not exist or belongs to a different API key. |
invalid_address | 400 | One or more addresses failed base58check validation. |
invalid_chain | 400 | One or more chainId values are not recognized. |
chain_not_enabled | 400 | The chainId is valid but not currently enabled on this account. |
addresses_limit_exceeded | 400 | The add or remove array exceeds the per-request size limit. |
unauthorized | 401 | The Authorization header is missing or the key is invalid. |