createContact( )


Creates a new contact.

The info object must include at least one of the following:

  • Name
  • Phone number
  • Email address

By default, if the call contains an email already in use by another contact, the new contact won't be created. To override this behavior, set allowDuplicates to true.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Members and Contacts - all permissions
Manage Contacts
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
infoContactInfoRequired

Contact info.


optionsCreateContactOptions

Create contact options.

Returns
Return Type:Promise<CreateContactResponse>
Errors
400Invalid Argument

There are 3 errors with this status code:

409Already Exists

There are 2 errors with this status code:

See the entire list and learn more about Wix errors.

Did this help?