Contact API
Add a contact and/or advisors to a contact
Add a contact and/or advisor(s) to the contact.
This end point can be called in 2 situations:
- To create a contact and eventually immediately associate one or more advisors.
- To add more advisors to an existing contact.
Note
- If both advisorSymphonyId and advisorEmailAddresses are passed, the advisorSymphonyId will prevail.
HTTP header
JohnDoeFor SMS, LINE, WHATSAPP and WECHAT, the companyName is mandatory
CompanyFor SMS, LINE, WHATSAPP and WECHAT, the emailAddress is mandatory
[email protected]911234567890External network: WECHAT or WHATSAPP or SMS or SMS-DIRECT or LINE
WHATSAPPA list of Symphony user IDs of the advisors to add the contact to.
14362370637825Contact preferred language code
CHINESE_CHN, CHINESE_HKG, CHINESE_TAI, JAPANESE (among others, see release note for more)A list of email addresses of the advisor to whom the contact is to be added. For WeChat, an "onboarder" is an advisor with the permission "create:contact". For WhatsApp, SMS, SMS Direct and LINE, the permission is set by default.
[email protected]If both advisorSymphonyIds and advisorEmailAddresses are empty, the contact will be added to the onboarder with this email address.
[email protected]Can be set to false in order to prevent the room creation when onboarding a contact on SMS Direct or WhatsApp Direct. This parameter can't be set to true for WhatsApp, SMS, Wechat and LINE for now.
Contact added successfully
JohnDoeCompany[email protected]911234567890External network: WECHAT or WHATSAPP or SMS or SMS-DIRECT or LINE
WHATSAPP123456789123651547661232368CHINESE_CHN, CHINESE_HKG, CHINESE_TAI, JAPANESE (among others, see release note for more)AB12DE43Missing or malformed input
Unauthorized
Onboard user forbidden
Not found
Conflict
User creation failed
Copy contact
Create a new contact copy.
Some contacts might be shared between tenants. Shared contacts updates are not allowed.
This API allows to create a contact copy that is dedicated for the requesting tenant and that can be updated.
Contacts that are created starting from the 23.03 release are already not shared between tenants. This API is dedicated for shared contacts created prior to the 23.03 release.
Please note:
- A new account is created for the user, with a new Symphony user ID.
- There is no change in the user's data.
- The original user account is removed from all rooms and the new account is added to these rooms. Then, a system message is pushed to each room: Maintenance completed on account: {contact first name} {contact last name}. No action on your part is required.
- The email format of the user will appear differently in Content Export. Old format: {network}.{phone}@symphony.com. New format: {network}.{phone}.{tenantId}@symphony.com
- This API is only supported for WHATSAPP and SMS contacts.
- Users who are still part of Symphony IMs cannot be copied. IMs should be first removed from Federation Services.
- The copy action is not required for users onboarded by a single tenant before the 23.03 release, or for all users onboarded after 23.03 release.
HTTP header
Contact's Symphony ID
1234567890Pattern: ^\d+$Contact successfully copied
Symphony user ID of the account copy
12345678912365StreamIds of the rooms in which the user's account has been replaced with the account copy.
Missing or malformed input
Copy user forbidden
Contact not found
Conflict
Contact update failed
Update contact
Update a contact's first name, last name, company name (maximum 100 characters) and, if the advisor has the permission for this, the contact's email address for a given external network.
Note: Updating a contact's phone number is not supported.
HTTP header
Contact's Symphony user ID
1234567890JohnDoeABCCompany911234567890[email protected]1234567890Pattern: ^\d+$Contact preferred language. Refer to contact preferred language section at the beginning of this documentation for valid language name.
CHINESE_CHN, CHINESE_HKG, CHINESE_TAI, JAPANESE, etc.Contact successfully updated
JohnDoeABCCompany[email protected]911234567890Federated user Symphony id
12345678912365Advisors Symphony IDs
14362370637825Contact preferred language
CHINESE_CHN, CHINESE_HKG, CHINESE_TAI, JAPANESE, etc.Missing or malformed input
Unauthorized
Update user forbidden
Contact not found
Conflict
Contact update failed
Resend a new invitation
Only applicable for networks requiring onboarding invitations: WeChat, LINE.
Sends a new onboarding invitation to the contact with the onboarding instructions and a new authentication one-time-password token, if applicable.
Required to reset the contact's invitation after it expires. The invitation expiry counter (7 days) is reset to zero and the status is changed from "Expired" to "Pending".
LINE since 23.04: If the user enters an expired one-time-password token within the first 7 days they were onboarded, they automatically receive a new valid token.
After the 7 days, calling this api is required to reset the user invitation status and to generate a new token.
HTTP header
Contact's Symphony user ID
1234567890Onboarder's Symphony user ID
1234567890The invite has been resent successfully.
AB12DE43Missing or malformed input
Not found
Failed
Remove contact
Remove an advisor's contact searching by the advisor's Symphony user ID and the contact's Symphony user ID
HTTP header
Advisor's Symphony user ID
1234567890Contact's Symphony user ID
1234567890Contact successfully removed
Unauthorized
Contact not found
No content
Remove all contacts
Removes all contacts of an advisor matching the advisor's Symphony user ID.
HTTP header
Advisor's Symphony user ID
1234567890Call completed - Report provided with the list of SUCCESSFUL and FAILED operations
Unauthorized
Operation forbidden
Advisor or contact not found
Remove the contact from all advisors they are connected to for a given external network
Remove the contact from all advisors they are connected to for a given external network (recommended)
Remove the contact from all the advisors they are connected to for a given external network.
HTTP header
Contact's Symphony user ID
1234567890Contact found. The response includes a status report (SUCCESS or FAILURE) of the connection removal for each advisors initially connected to the contact.
Unauthorized
Operation forbidden
Contact not found
Bulk remove advisor-contact connections
Remove specific advisor-contact connections in bulk.
HTTP header
Contacts found. The response includes a status report (SUCCESS, NOT_FOUND or FAILURE) of the connection removal for each advisor initially connected to each contact in the array of objects.
Unauthorized
Operation forbidden