✉ MailCraft API Reference

Contact properties

Create contact property

Verified
POST/api/v1/org/contact-properties

Defines a typed custom field. key/type cannot change later. Duplicate key → 409.

Body Parameters

Notes

Live 2026-11-02. Body { key, type: "string"|"number", fallbackValue? }. type is case-insensitive on input ("Number" works) but MUST be a string: numeric type (1) -> ProblemDetails 400. fallbackValue MUST be a string: a JSON number (0) -> ProblemDetails 400 $.fallbackValue could not be converted; send "0" for number properties. For type number the fallback must parse as a number ("abc" and "" -> 400 ValidationFailed). fallbackValue is optional/null. Key: required, <= 50 chars, alphanumeric + underscores only (spaces, dashes, leading/trailing whitespace rejected; uppercase and a leading digit ARE allowed). Keys are unique case-SENSITIVELY (APITEST_TEXT next to apitest_text was accepted); an exact duplicate (any type) -> 409 Conflict. Success is 200 (not 201). Response type is an integer (0 string, 1 number).

Errors

StatusCaseBody
400error{"error": {"code": "ValidationFailed", "message": "Type must be \"string\" or \"number\"."}}
409errorDuplicateKey{"error": {"code": "Conflict", "message": "A Contact Property with this key already exists."}}
400errorEmptyKey{"error": {"code": "ValidationFailed", "message": "Key is required, at most 50 characters, and alphanumeric/underscores only."}}
400errorInvalidKey{"error": {"code": "ValidationFailed", "message": "Key is required, at most 50 characters, and alphanumeric/underscores only."}}
400errorBadNumberFallback{"error": {"code": "ValidationFailed", "message": "FallbackValue must be a valid Number value."}}
400errorNumericFallback{"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"request": ["The request field is required."], "$.fallbackValue": ["The JSON value could not be converted to MailchimpC
400errorMissingKey{"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"Key": ["The Key field is required."]}, "traceId": "00-be904528684c3571baddf8ed8b7f79c8-7b7fb357530b3f3c-00"}
400errorMissingType{"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"Type": ["The Type field is required."]}, "traceId": "00-2161396a6a264ef9cc12b3291e1457b5-a2e59abdba904db5-00"}

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