MepMail Docs

Mint a preference-center link for a contact

POST
/contacts/{id}/preferences-link

MepMail extension. Returns the contact's hosted preferences URL, the same page the unsubscribe links in their emails open, so a product settings screen can deep-link into it. The page lists the team's public topics and carries the global unsubscribe. The link is a signed, contact-scoped capability with no expiry: anyone holding it can change that contact's preferences, so hand it only to the contact.

Path Parameters

id*string
Length1 <= length

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/contacts/string/preferences-link"
{  "object": "preferences_link",  "contact": "ad596931-5d7c-4d2b-907e-5b64c9432eb4",  "url": "http://example.com"}