getting 403 in Ant media rest api

1.4k Views Asked by At

I've tried to call api with postman and put IP filter already. I can access ANT api from postman with path parameters. But I can not access api exactly like in the Ant rest documentation.

For instance getting broadcast item in Ant api document, /v2/broadcasts/{id}

What I can work in postman, /rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/{id}

I call this post method to authenticate first with my email and password in postman. http://myIp:5080/rest/authenticateUser. And then I call others api like this after in postman. http://myIp:5080/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/623967750864416207633038 It works in postman. But when I tried in my nodejs app, it only works for authenticateUser. I'm getting 403 for other api. Can someone help me check? Thanks.

1

There are 1 best solutions below

3
On

request?_path syntax is valid for the Dashboard requests. You should use as below:

http://myip:5080/WebRTCAppEE/rest/v2/broadcasts/623967750864416207633038

Note: Make sure add your IP address in Application/IP filter Setting