Creating a contact

๐Ÿ‘

Please see Create contact for the full API reference

To create a single contact you need to submit a JSON object to the URL

POST https://contacts.8x8.com/accounts/{accountId}/contacts

Request body should look like this:

{
"firstName":"Chathuranga",
"lastName":"Pathirana",
"externalId":"externalSystemId",
"country":"SG",
"groups":[
{"id":72},
{"id":82}
],
"addresses":{
"msisdn":"6580000000",
"weChatUserId":"oJQxo6XXXXXXXXXXXXXXXXX",
"facebookUserId":"19520000000000",
"email":"user@example.com"
},
"customAttributes":{
"company":"Google",
"jobTitle":"CEO"
}
}

Response:

Returns 201 Created with location header if the request was successful. If the request failed, an error object will be returned.


Source: https://developer.8x8.com/connect/docs/creating-a-contact ยท 8x8 CPaaS Developer Docs. Synced for support deflection.

Was this article helpful?
or
0 out of 0 found this helpful

0 Comments

Please sign in to leave a comment.

Didn't find what you were looking for?

Submit a request