Record what an account agreed to
record_consentRecords what the address agreed to at sign-up, after you filled in the form: marketing (opted_in or declined), prechecked (whether the consent box was already ticked when the page loaded) and double_opt_in (confirmed or pending, when the app asks to confirm the subscription by email; it confirms itself when the verify link is used). check_email then judges marketing email by the rules where the persona lives (create_address with country): marketing_consent, prechecked_consent, double_opt_in, unsubscribe_deadline, postal_address, sender_identity, minor_marketing, misleading_subject and ad_label, for the EU and EEA, UK, US, Canada, Australia, New Zealand, Switzerland, Japan, South Korea, Singapore and Hong Kong, each naming its official source. A test aid, not legal advice. Give only what changed; answers with the consent as recorded.
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": {
"address": "<address>"
},
"name": "record_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | When. Default: now. | |
| address | Yes | A test address in this project. A variant works too (capitals, or a +tag such as name+o'brien@…): it acts on the plain address, and a wait on a +tag variant only finds mail sent to it. | |
| marketing | No | What it chose about marketing email. | |
| prechecked | No | The marketing box was ticked already when the form loaded. | |
| double_opt_in | No | Whether it has confirmed its subscription by email. |