Contacts
Add contact to list
VerifiedPOST
/api/v1/contacts/{id|email}/lists/{listId}Adds a contact to a list. Idempotent. No body.
Path Parameters
id|emailstringrequiredContact id or email.
listIdstringrequiredList id.
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
| Status | Case | Body |
|---|---|---|
| 404 | error | {"error": {"code": "NotFound", "message": "List not found."}} |
| 404 | errorUnknownContact | {"error": {"code": "NotFound", "message": "Contact not found."}} |
Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.