Need some help on Integration with Twilio

shaik_irfan
Tera Guru

Hi,

 

I am learning integration, i am able to integrate using Postman but when i am trying the same in Servicenow i am getting below error

{"code": 20001, "message": "Missing required parameter To in the post body", "more_info": "https://www.twilio.com/docs/errors/20001", "status": 400}

 

In Postman i copy pasted the username and pwd with authentication and secret key

find_real_file.png

 

I think when i given username and pwd with authentication token and secret automatically postman has added 

 

find_real_file.png

 

Body

find_real_file.png

 

In Servicenow rest message i just copy pasted the same header and body but i am getting error

 

find_real_file.png

 

I did tried keeping Content-Type : application/x-www-form-urlencoded

 

find_real_file.png

 

2 REPLIES 2

rahulpandey
Kilo Sage

Hi Irfan,

 

In postman, you are passing "To" and "Channel" in body however, in servicenow, you are passing in query parameter.

You need to pass  as shown in below screenshot

find_real_file.png

I did tried like that still i am getting the same error