Skip to main content
GET
/
ip_restrictions
List
curl --request GET \
  --url https://api.ngrok.com/ip_restrictions \
  --header 'Authorization: Bearer <token>' \
  --header 'ngrok-version: <ngrok-version>'
{
  "ip_restrictions": [
    {
      "id": "<string>",
      "uri": "<string>",
      "created_at": "<string>",
      "description": "<string>",
      "metadata": "<string>",
      "enforced": true,
      "type": "<string>",
      "ip_policies": [
        {
          "id": "<string>",
          "uri": "<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 restrictions on this account

ip_restrictions
object[]

the list of all IP restrictions on this account

uri
string

URI of the IP restrictions list API resource

next_page_uri
string

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