-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adds contacts.checkExistence
endpoint
#34194
Conversation
Looks like this PR is ready to merge! 🎉 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34194 +/- ##
========================================
Coverage 75.81% 75.81%
========================================
Files 512 512
Lines 22208 22208
Branches 5404 5404
========================================
Hits 16837 16837
Misses 4720 4720
Partials 651 651
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
🦋 Changeset detectedLatest commit: c7af3ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
0613965
Proposed changes (including videos or screenshots)
contacts.checkExistence
endpoint, which allows identifying whether there's already a contact registered using a given email, phone, id or visitor to source association.Issue(s)
Steps to test or reproduce
Example request (cURL):
Example response:
{ exists: true, success: true }
This endpoints only fails in case invalid query params (or more than one valid param) are provided. Accepted params are:
contactId
,email
,phone
andvisitor
(which is an object containing avisitorId
and asource
, same as in thecontacts.get
endpoint).The
view-livechat-contact
permission is required in order to use this endpoint.Further comments
CORE-888