createContact( )
Creates a new contact.
The createContact()
function returns a Promise
that resolves to the new contact when it is created.
The info
parameter object must include a name, phone number, or email address.
If all 3 of these parameters are missing,
the contact won't be created.
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
in the options
object to true
.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Contacts
Manage Members and Contacts - all permissions
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
infoContactInfoRequired
Contact info.
optionsCreateContactOptions
Create contact options.
Returns
Return Type:Promise<CreateContactResponse>
Was this helpful?
Yes
No