IP Allowlist

Use these operations to interact with the IP allowlist in Cortex.

Required permissions

Your API key must have the Configure IP allowlist permission.

Operations

Gets allowlist of IP addresses & ranges

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Query parameters
pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
Responses
200

Successfully retrieved IP allowlist

application/json
get
/api/v1/ip-allowlist
GET /api/v1/ip-allowlist?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "entries": [
    {
      "address": "10.0.0.1",
      "description": "text"
    }
  ],
  "page": 1,
  "total": 1,
  "totalPages": 1
}

Validates allowlist of IP addresses & ranges

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
Responses
200

Successfully validated allowlist

application/json
Responseone of
or
post
/api/v1/ip-allowlist/validate
POST /api/v1/ip-allowlist/validate HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "entries": [
    {
      "address": "10.0.0.1",
      "description": "text"
    }
  ]
}
{
  "address": "10.0.0.1",
  "description": "text",
  "valid": true
}

Replace existing allowlist with provided list of IP addresses & ranges

put
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Query parameters
forcebooleanOptional

When true, entries will be updated even if the list doesn't contain the requestor's IP address

Body
Responses
200

Successfully replaced allowlist

application/json
put
/api/v1/ip-allowlist
PUT /api/v1/ip-allowlist HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "entries": [
    {
      "address": "10.0.0.1",
      "description": "text"
    }
  ]
}
{
  "entries": [
    {
      "address": "10.0.0.1",
      "description": "text"
    }
  ],
  "page": 1,
  "total": 1,
  "totalPages": 1
}

Last updated

Was this helpful?