Fetch push notification service settings
A Service Notification resource manages a set of settings to determine push notification behavior at service level.
Fetch push notification service settings
Path parameters
-
The SID of the Conversation Service the Configuration applies to.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ChatServiceSid}/Configuration/Notifications
curl \
--request GET 'https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Notifications' \
--user "username:password"
Response examples (200)
{
"url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Configuration/Notifications",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"log_enabled": false,
"new_message": {
"sound": "ring",
"enabled": true,
"template": "You have a new message in ${CONVERSATION} from ${PARTICIPANT}: ${MESSAGE}",
"with_media": {
"enabled": false,
"template": "You have a new message in ${CONVERSATION} with ${MEDIA_COUNT} media files: ${MEDIA}"
},
"badge_count_enabled": false
},
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"added_to_conversation": {
"sound": "ring",
"enabled": true,
"template": "You have been added to a Conversation: ${CONVERSATION}"
},
"removed_from_conversation": {
"sound": "ring",
"enabled": true,
"template": "You have been removed from a Conversation: ${CONVERSATION}"
}
}