✉ MailCraft API Reference

Contacts

Add contact to list

Verified
POST/api/v1/contacts/{id|email}/lists/{listId}

Adds a contact to a list. Idempotent. No body.

Path Parameters

Notes

Returns 200 with { contactId, listId }. Idempotent: a repeat call returns the same 200 body. Unknown contact = 404 'Contact not found.'; unknown list = 404 'List not found.'.

Errors

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

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