Record what the address agreed to
const url = 'https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/consent';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"marketing":"opted_in","prechecked":true,"double_opt_in":"confirmed","at":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/consent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "marketing": "opted_in", "prechecked": true, "double_opt_in": "confirmed", "at": "2026-04-15T12:00:00Z" }'What the address agreed to at sign-up: marketing (opted_in or declined), prechecked (the box was ticked when the form loaded) and double_opt_in (confirmed or pending; it confirms itself when the verify link is used). Give only what changed. /checks then judges marketing email by the rules where the persona lives (its 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. In Labs: answers 403 until the key’s creator switches on Marketing and offer emails in Account settings → Labs.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The test address, URL-encoded. A variant also works: capitals, or a +tag (k7f2x9ab12cd+o’brien@mailclub.dev). It acts on the plain address; waiting on a +tag variant, or listing its messages, only finds mail sent to that variant.
Example
k7f2x9ab12cd@mailclub.devRequest Bodyrequired
Section titled “Request Bodyrequired”object
When. Default: now.
Responses
Section titled “Responses”Its consent as recorded
object
The persona’s country, which decides the rules.
Example
{ "marketing": "opted_in", "double_opt_in": "confirmed", "via": "form"}An error
object
Example generated
{ "error": "example", "message": "example"}An error
object
Example generated
{ "error": "example", "message": "example"}