Node sdk, while adding callback url to json, api gives 400 bad request error

Hello Community,

I have started to use node sdk to render videos.
Everything works fine if I dont add callback parameter to json, but as soon as I add callback parameter, render api throws 400 bad request error.

JSON sniipet with callback -

Please do help with webhook thing.


Hey Karan,

The reason you’re getting a 400 error is because localhost is not a publicly accessible URL. Callbacks need to be able to resolve to a valid IP that the API can send a request to.

An alternative to localhost for testing is a service such as requestbin or These provide you with a publicly available URL you can use as your callback URL.

If you do need to use localhost for testing I recommend using a service like ngrok. This exposes local servers (localhost) behind NATs and firewalls to the public internet over secure tunnels.

1 Like

Oh, I was on the same page then…

Thank you so much for your quick response.

I am beginning to create a service based on shotstack API, and I think I can depend on the helpful community like this.