Skip to content

Create or update a contact

Creates the contact if it does not exist, otherwise updates it. The match is made on phoneNumber first, then email.

customFields are addressed by customFieldId; get the ids from List custom fields. assignedUsers takes the login phone numbers of your team members.

PUT
https://api.zacx.io/v1/contact/upsert

Authorisation

  • bearerAuthHTTPrequired

Request bodyJSON

  • nameoptionalstring
    Example: "John Doe"
  • emailoptionalstring
    format: email
  • phoneNumberoptionalstring

    Phone number with country code. A leading + is accepted.

    Example: "+11234567890"
  • customFieldsoptionalarray ofobject
    2 properties
    • customFieldIdstringrequired

      Id from List custom fields.

      format: uuid
    • valuestringrequired
  • tagsoptionalarray ofstring

    Tag names. Must already exist in the workspace.

  • assignedUsersoptionalarray ofstring

    Login phone numbers of team members to assign.

Returns

200

The contact after the write.

JSON
  • statusstringrequired
  • dataobjectrequired
    6 properties
    • nameoptionalstring
    • phoneNumberoptionalstring
    • emailoptionalstring
      format: email
    • customFieldsoptionalarray ofobject
      2 properties
      • nameoptionalstring
        Example: "test field"
      • valueoptionalstring
        Example: "custom field value"
    • tagsoptionalarray ofstring
    • assignedUsersoptionalarray ofstring

      Display names of the assigned users.

400

One or more parameters are missing or invalid.

JSON
  • statusstringrequired
  • codestringrequired

    Stable machine-readable error code.

  • messagestringrequired

    Human-readable explanation.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close