Add a contact to a customer

View as Markdown
Email is lowercased on the way in and unique per customer.

Authentication

AuthorizationBearer

Send your key in the Authorization header. Keys start with pivotal_ (production) or pivotal_test_ (test mode, no side effects on integrations). Rotate keys from /admin/api-keys — old keys 401 instantly when revoked.

Path parameters

customerIdstringRequired

Numeric display_id or cuid of the parent customer.

Request

This endpoint expects an object.
namestringRequired1-255 characters
emailstringRequiredformat: "email"<=255 characters
titlestringOptional<=255 characters
is_primarybooleanOptional
labelslist of stringsOptional

Response

Created
objectenum
idstring
display_idinteger
customer_idstring
namestring
emailstringformat: "email"
titlestring or null
is_primaryboolean
labelslist of strings
created_atdatetime
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error