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

Hi,



You should be adding HTTP Headers in the post message



Under HTTP Request tab, in HTTP headers add these



Name:Content-Type Value: application/json


Name:Accept Value: application/json



The first error message was something related to your authentication and the last one related to missing HTTP Headers



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


Hi Alikutty,



Thanks for the reply.


created HTTP headers and created Basic authentication. in Basic authentication, provided my servicenow credentials and I have admin access.



still getting the same



find_real_file.png



Please suggest



Thanks


Hi,



It says your API key for third party provider is missing in the request. Can you please check with them or the documentation to see on how to pass it in your request?



I believe that you should be sending one more attribute in the Rest request along with other contents. Please check and let me know.



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


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


Hi Alikutty,



Added one more header as Authorization and now test is success.



  • Add Key = Content-Type , value = application/json
  • Add Key = Accept , value = application/json
  • Add Key = Authorization , value = Your API Key


My requirement is to send SMS to P1 incidents( already a notification is configured) and for Approval notification. can you please suggest me how to set this up. it would be great if you can share me the steps.



Thanks!