Contact properties
Create contact property
Verified/api/v1/org/contact-propertiesDefines a typed custom field. key/type cannot change later. Duplicate key → 409.
Body Parameters
keystringrequired≤50 chars, letters/digits/underscore. Case-sensitive.
type"string" | "number"requiredSend as a string (responses use 0/1).
fallbackValuestring | nullAlways a string, even for number (
"0").
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
| Status | Case | Body |
|---|---|---|
| 400 | error | {"error": {"code": "ValidationFailed", "message": "Type must be \"string\" or \"number\"."}} |
| 409 | errorDuplicateKey | {"error": {"code": "Conflict", "message": "A Contact Property with this key already exists."}} |
| 400 | errorEmptyKey | {"error": {"code": "ValidationFailed", "message": "Key is required, at most 50 characters, and alphanumeric/underscores only."}} |
| 400 | errorInvalidKey | {"error": {"code": "ValidationFailed", "message": "Key is required, at most 50 characters, and alphanumeric/underscores only."}} |
| 400 | errorBadNumberFallback | {"error": {"code": "ValidationFailed", "message": "FallbackValue must be a valid Number value."}} |
| 400 | errorNumericFallback | {"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 |
| 400 | errorMissingKey | {"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"} |
| 400 | errorMissingType | {"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.