✉ MailCraft API Reference

Contacts

Update contact

Verified
PATCH/api/v1/contacts/{id|email}

Partial update. Only these fields are accepted; others (e.g. email) are silently ignored. customFields is merged.

Path Parameters

Body Parameters

Notes

Id or email both work. The response has NO 'unsubscribed' field: sending unsubscribed=false flipped emailOptIn and smsOptIn to true, unsubscribed=true set both to false. Unknown fields (e.g. email) are silently ignored (200, unchanged). An empty body {} returns 200. customFields are merged, not replaced.

Errors

StatusCaseBody
404error{"error": {"code": "NotFound", "message": "Contact not found."}}

Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.