Skip to main content

Create contact

POST 

/contacts

Some providers do not support primary phone number type, in which case we will default to mobile. If both primary and mobile phone numbers are specified and only a single mobile number is possible, then mobile will be used and primary will be dropped.

Request

Header Parameters

    x-customer-id stringrequired

    The customer ID that uniquely identifies the customer in your application

    Example: my-customer-1
    x-provider-name stringrequired

    The provider name

    Example: salesforce

Body

required
    record objectrequired
    first_name stringnullable
    last_name stringnullable
    job_title stringnullable
    address objectnullable
    city stringnullablerequired
    country stringnullablerequired
    postal_code stringnullablerequired
    state stringnullablerequired
    street_1 stringnullablerequired
    street_2 stringnullablerequired
    email_addresses object[]
  • Array [
  • email_address stringrequired
    email_address_type stringnullablerequired

    Possible values: [primary, personal, work]

  • ]
  • phone_numbers object[]
  • Array [
  • phone_number stringnullablerequired
    phone_number_type stringnullablerequired

    Possible values: [primary, work, home, mobile, other]

  • ]
  • owner_id stringnullable
    account_id stringnullable
    custom_fields object

    Custom properties to be inserted that are not covered by the common object. Object keys must match exactly to the corresponding provider API.

    property name* any

    Custom properties to be inserted that are not covered by the common object. Object keys must match exactly to the corresponding provider API.

Responses

Contact created

Schema
    record object
    id stringrequired
    warnings object[]
  • Array [
  • detail string
    problem_type string
    title string
  • ]
Loading...