Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@
]
},
{
"tab": "SDK",
"tab": "SDKs",
"dropdowns": [
{
"dropdown": "JavaScript",
Expand Down
2 changes: 1 addition & 1 deletion notifications.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ import { CardGroup, Card, Columns, Steps, AccordionGroup, Accordion } from 'mint
</div>

{/* Footer */}
<div className="flex flex-col w-full mt-8" style={{ background: 'black' }}>
<div className="flex flex-col w-full mt-8" style={{ background: 'black', marginBottom: '-6rem' }}>
<div className="bg-black text-gray-400 py-6 px-8 flex flex-col md:flex-row justify-between items-center rounded-t-xl">
<div className="mb-4 md:mb-0">
2026 © CometChat
Expand Down
18 changes: 17 additions & 1 deletion notifications/email-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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://<APP_ID>.api-<REGION>.cometchat.io/v3/notifications/v1/contact-details \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'onBehalfOf: <onbehalfof>' \
--data '
{
"email": "someone@example.com",
"phno": "+91XXXXXXXXXX"
}
'
```

### 5. Enable Email notifications

Expand Down
18 changes: 17 additions & 1 deletion notifications/sms-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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://<APP_ID>.api-<REGION>.cometchat.io/v3/notifications/v1/contact-details \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'onBehalfOf: <onbehalfof>' \
--data '
{
"email": "someone@example.com",
"phno": "+91XXXXXXXXXX"
}
'
```

### 3. Enable SMS notifications

Expand Down