Skip to content
Splashify Pro
Email docsEmail

Update contact

Change the status or name of a contact in an audience, for example to unsubscribe someone who asked you to stop.

PATCH

/api/v1/partner/email/audiences/:id/contacts/:email

Connected apps need email.contacts:write. See Connected apps (OAuth).

Path parameters

Request body

Send any of these fields; the others stay as they are.

json
{ "status": "unsubscribed", "first_name": "Asha", "last_name": "Rao" }

Update only contacts that are in the audience: add a new address with Add contacts first.

Response

json
{ "success": true }

cURL

bash
curl -X PATCH https://api.splashifypro.com/api/v1/partner/email/audiences/8b2f6c1e-9a4d-4f1b-b6a2-1c3d5e7f9a0b/contacts/asha%40example.com \
  -H "Authorization: Bearer $SPLASHIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"unsubscribed"}'

Common errors