Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Process subscription change initiated by a user (admin/agent). Supports individual custom subscription changes and resub all functionality. Legal forms are automatically created for user-initiated resubscribe actions on custom subscriptions.
POST https://services.leadconnectorhq.com/conversations/preferences/unsubscriptions/user-change

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Body

locationId
string
default:"ve9EPM428h8vShlRW1KT"
required
Account Id
contactId
string
default:"OP7z4LCyPACyH5fcEIZa"
required
Contact Id
email
string
default:"user@example.com"
required
Email address
subscription_action
object
required
Subscription action details
Legal reason for the change (required only for resubscribe and resub_all actions)
Legal description/details

Respuestas

{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/conversations/preferences/unsubscriptions/user-change' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "locationId": "ve9EPM428h8vShlRW1KT",
  "contactId": "OP7z4LCyPACyH5fcEIZa",
  "email": "user@example.com",
  "legal_reason": "User requested resubscribe via customer service",
  "legal_description": "Customer called support on 2024-01-15 requesting to be removed from newsletter"
}'