POST/v1/contacts

Create or update contacts

One contact or an array of up to 1,000. A contact with an externalId is matched on it; without one, on the normalised address and the name. Fields given replace, attributes merge, marketingPermission is set only when given.

Scope contacts.manageIdempotent with a key

Headers

Idempotency-Keystringmax length 255

Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).

Returns

2 fields of the 201 answer
createdarray of objectsrequired
24 fields
idstringrequired
externalIdstring or nullrequired
namestringrequired
companystring or nullrequired
jobTitlestring or nullrequired
addressLine1stringrequired
addressLine2string or nullrequired
postalCodestringrequired
citystringrequired
countrystringrequired
emailstring or nullrequired
phonestring or nullrequired
valueCentsinteger or nullrequired

The customer value the organisation gave, in cents (E111-03)

orderValueCentsintegerrequired

The measured orders of the contact (live conversions), in cents

customerValueCentsintegerrequired

The value that counts: the own value when set, else the measured orders, in cents

attributesobjectrequired
marketingPermissionenumrequired
unknowngrantedobjected
permissionAtdate-time or nullrequired
permissionSourcestring or nullrequired
sourceenumrequired
apicsvmanualintegrationcard
lastActivityAtdate-timerequired
cardCountintegerrequired
createdAtdate-timerequired
updatedAtdate-timerequired
updatedarray of objectsrequired
24 fields
idstringrequired
externalIdstring or nullrequired
namestringrequired
companystring or nullrequired
jobTitlestring or nullrequired
addressLine1stringrequired
addressLine2string or nullrequired
postalCodestringrequired
citystringrequired
countrystringrequired
emailstring or nullrequired
phonestring or nullrequired
valueCentsinteger or nullrequired

The customer value the organisation gave, in cents (E111-03)

orderValueCentsintegerrequired

The measured orders of the contact (live conversions), in cents

customerValueCentsintegerrequired

The value that counts: the own value when set, else the measured orders, in cents

attributesobjectrequired
marketingPermissionenumrequired
unknowngrantedobjected
permissionAtdate-time or nullrequired
permissionSourcestring or nullrequired
sourceenumrequired
apicsvmanualintegrationcard
lastActivityAtdate-timerequired
cardCountintegerrequired
createdAtdate-timerequired
updatedAtdate-timerequired

Responses

201Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)