Despite adding the SMS API, we are still receiving responses because the API is not enabled. We have enabled the engagement user’s access to the x-api-key and enabled the notification API engine under engage.
We’re employing R4 region bot.
Can you please share your curl request?
curl --location --request POST 'https://app.yellowmessenger.com/api/engagements/notifications/v2/push?bot=x1670912091591' \
--header 'x-api-key: Yv0R_rn1E2BlxFI0Z1GnCsjvB65sba9kg6xQqe3E' \
--header 'Content-Type: application/json' \
--data-raw '{
"userDetails": {
"number": "918582821457"
},
"notification": {
"type": "sms",
"sender": "JNJOFR",
"templateId": "test",
"params": {
"1": " "
},
"isTransactional": true,
"isUnicode": true
}
}'
Hi @Abhijeet_Kumar
To use the Notification API you have to enable it on the platform as explained here
- Go to the Engage module,
- Navigate to Preferences.
- Click Enable API Access.
1 Like
We have already enable this setting still showing error
@Abhijeet_Kumar
Make sure you’re using the v2 notification API base URL
https://cloud.yellow.ai/api/engagements/notifications/v2/push?bot={botId}
PS: Please hide the apiKeys
Hey @Abhijeet_Kumar Have you tried again by hitting the API by updating the URL…?