Query notification service IP address
GET
https://api.agora.io/v2/ncs/ip
Use this endpoint to retrieve the IP addresses of the Notifications server. If your server is behind a firewall, add these IP addresses to your allowlist to receive channel event notifications.
tip
Agora occasionally adjusts the Notifications IP addresses. Call this endpoint at least every 24 hours and automatically update your firewall configuration with the latest addresses.
Request
The request URL and request body is case-sensitive. All requests must use HTTPS.
Request header
Content-Type:application/json- The request header must contain the
Authorizationfield. For details, see RESTful authentication.
Response
A 200 status code indicates success. The response body contains the following parameters:
OK
- data object
If the status code is not 200, the request fails. See the message field in the response body for the reason for this failure. Refer to Response status codes for details.