Skip to main content
GET
/
ip_policy_rules
List
curl --request GET \
  --url https://api.ngrok.com/ip_policy_rules \
  --header 'Authorization: Bearer <token>' \
  --header 'ngrok-version: <ngrok-version>'
{
  "ip_policy_rules": [
    {
      "id": "<string>",
      "uri": "<string>",
      "created_at": "<string>",
      "description": "<string>",
      "metadata": "<string>",
      "cidr": "<string>",
      "ip_policy": {
        "id": "<string>",
        "uri": "<string>"
      },
      "action": "<string>"
    }
  ],
  "uri": "<string>",
  "next_page_uri": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

ngrok-version
integer
default:2
required

Query Parameters

before_id
string
limit
string

Response

200 - application/json

List all IP policy rules on this account

ip_policy_rules
object[]

the list of all IP policy rules on this account

uri
string

URI of the IP policy rule list API resource

next_page_uri
string

URI of the next page, or null if there is no next page