The CreatorCon Call for Content is officially open! Get started here.

Send SMS notificaiton using REST

Hitesh targe
Tera Expert

Hi All,

is anyone configured SMS notificaiton using REST?

i have a requirement to configure SMS notification. my customer has sms subscription of https://platform.clickatell.com/. How can we send SMS notification using REST ?

it would be great if anyone can share the document.

Thanks.

1 ACCEPTED SOLUTION

One more thing, In the basic authentication, You should be providing the credentials to access clickatell and not your Service Now Id and password, May be this is the issue.



Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

15 REPLIES 15

Alikutty A
Tera Sage

Hi,



You will need to check with https://platform.clickatell.com/ whether they support SMS sending via REST web services and get the request format(query parameters) and related endpoint information.



With this information, You can create a rest message in Service Now that basically calls the endpoint and send SMS after authentication.



Create a REST message



Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response


Hi Alikutty,



we have the information



curl -i \


-X POST \


-H "Content-Type: application/json" \


-H "Accept: application/json" \


-H "Authorization: xxxxxxxxxxxxxxxxxxxxxxxxx" \


-d '{"content": "Test Message Text", "to": ["+91xxxxxxxxxxxx"]}' \


-s https://platform.clickatell.com/messages


This information is good, Can you try creating a new Rest Message in Service Now and test it once?



Your endpoint should be   https://platform.clickatell.com/messages


Add Authorization as Basic and add a user profile with your Id and password in it


Add Headers in the request for Content-Type and Accept



Once you have done this, create a new HTTP method for POST from the related tab


Authentication can be inherited from parent and update the same HTTP headers


In the content field, you can hard code the message {"content": "Test Message Text", "to": ["+91xxxxxxxxxxxx"]}



Use the Test related link to check if SMS is send out.




Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response



Hi AliKutty,



Thanks for sharing the steps to create. followed the steps provided but SMS is not triggered.



find_real_file.png



find_real_file.png





find_real_file.png



find_real_file.png



Please suggest