MillionSend Docs

Mint a preference-center link for a contact

POST
/contacts/{id}/preferences-link

MillionSend 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

The contact's preference page URL

application/json
  1. response
object*"preferences_link"
Value in"preferences_link"
contact*string
Formatuuid
url*string

The contact's hosted preference page; no expiry, treat as a secret

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