Undo opt-out
undo_opt_outUndo an opt-out the reply reading recorded on a thread (a misread, such as "remove me as the contact, write to partners@"). Only opt-outs this account's own reply reading listed are removed; a click on the unsubscribe link or another sender's opt-out stays. The thread goes back to replied with no more sequence steps, and the contact can be emailed again. Guarded: without approval_token it returns {error:"approval_required", approval_token, summary} for the user to confirm; call again with the token. Every dashboard guardrail still applies: this is exactly what a user clicking the dashboard could do, no more.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"enrollment_id": "<enrollment_id>"
},
"name": "undo_opt_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enrollment_id | Yes | An enrollment_id from list_inbox_threads. | |
| approval_token | No | Approval token from a previous approval_required response, after the user said yes. |