✉ MailCraft API Reference

Contacts

Import contacts (JSON)

Verified
POST/api/v1/contacts/import-json

Creates/updates up to 1000 contacts. The body is a bare array. Runs synchronously: the returned job is already finished.

Query Parameters

Body Parameters

Notes

Body is a bare JSON array. Query: onConflict=upsert|skip, listIds (comma separated; verified: contacts joined the list), tagIds, topicSubscriptions (not verified). Returns 200 and the job is already finished (synchronous): completedAt is set. Job field is 'id' (not 'jobId'). status: 1 = completed, 2 = rows failed (observed values only). A non-array body is a 400 ProblemDetails; [] is a 400 ValidationFailed.

Errors

StatusCaseBody
400error{"error": {"code": "ValidationFailed", "message": "At least one contact is required."}}
400errorProblemDetails{"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"$": ["The JSON value could not be converted to System.Collections.Generic.List`1[MailchimpClone.Application.Contacts.C

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