Skip to content

Create a contact

POST/v1/contacts

Creates a contact. full_name and phone_number are required. Optional fields include email, type, company_name, country_name, city_name, bio, additional_attributes, and is_blocked. When omitted, type defaults to external and is_blocked defaults to false.

Body

full_namestring required
emailstring (email) or null
phone_numberstringE.164 format when type is external required
Example:+201288899999
typeenum: internal | external
Example:external
company_namestring or null
country_namestring or null
city_namestring or null
biostring or null
additional_attributesobject
is_blockedboolean
Example:false

Responses

Body

success_codeenum: 201Numeric success code matching the HTTP response status. required
Example:201
messagestring required
Example:Contact created
detailsobject required
dataobject (GeneralContactCreatedData) required
idstringCreated contact ULID required
Example:01kptye62pxs8pp0xkh6d5vxz2
metaobject
error_codeintegerNumeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobjectValidation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required
error_codeintegerNumeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobjectValidation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required
error_codeintegerNumeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobjectValidation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required
error_codeintegerNumeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobjectValidation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required