diff --git a/docs.json b/docs.json index 2484feb6..39b0b774 100644 --- a/docs.json +++ b/docs.json @@ -2495,7 +2495,7 @@ ] }, { - "tab": "SDK", + "tab": "SDKs", "dropdowns": [ { "dropdown": "JavaScript", diff --git a/notifications.mdx b/notifications.mdx index 7578de3a..90917513 100644 --- a/notifications.mdx +++ b/notifications.mdx @@ -196,7 +196,7 @@ import { CardGroup, Card, Columns, Steps, AccordionGroup, Accordion } from 'mint {/* Footer */} -
+
2026 © CometChat diff --git a/notifications/email-integration.mdx b/notifications/email-integration.mdx index 16e4f444..3c3695e1 100644 --- a/notifications/email-integration.mdx +++ b/notifications/email-integration.mdx @@ -364,7 +364,23 @@ An unsubscribe group will allow your users to unsubscribe to only chat email not ### 4. Store contact details -Store the Email IDs of your users by using our [Update Contact details API](https://api-explorer.cometchat.com/reference/notifications-update-contact-details). +Store each user's contact email/phone with the [Update Contact details API](https://api-explorer.cometchat.com/reference/notifications-update-contact-details). Use the user's UID in `onBehalfOf` and call the region-specific base URL (`api-us`, `api-eu`, `api-in`). + +Example request: + +```bash +curl --request PATCH \ + --url https://.api-.cometchat.io/v3/notifications/v1/contact-details \ + --header 'Content-Type: application/json' \ + --header 'apikey: ' \ + --header 'onBehalfOf: ' \ + --data ' +{ + "email": "someone@example.com", + "phno": "+91XXXXXXXXXX" +} +' +``` ### 5. Enable Email notifications diff --git a/notifications/sms-integration.mdx b/notifications/sms-integration.mdx index df167ff2..898c3e36 100644 --- a/notifications/sms-integration.mdx +++ b/notifications/sms-integration.mdx @@ -19,7 +19,23 @@ We have partnered with Twilio for sending SMS Notifications so need to set up an ### 2. Store contact details -Store the phone number of your users by using our [Update Contact details API](https://api-explorer.cometchat.com/reference/notifications-update-contact-details). +Store each user's phone (and optional email) with the [Update Contact details API](https://api-explorer.cometchat.com/reference/notifications-update-contact-details). Use the user's UID in `onBehalfOf` and call the region-specific base URL (`api-us`, `api-eu`, `api-in`). + +Example request: + +```bash +curl --request PATCH \ + --url https://.api-.cometchat.io/v3/notifications/v1/contact-details \ + --header 'Content-Type: application/json' \ + --header 'apikey: ' \ + --header 'onBehalfOf: ' \ + --data ' +{ + "email": "someone@example.com", + "phno": "+91XXXXXXXXXX" +} +' +``` ### 3. Enable SMS notifications