Last updated 1 month ago
Use these operations to interact with the in Cortex.
Your API key must have the Configure IP allowlist permission.
Configure IP allowlist
Number of results to return per page, between 1 and 1000. Default 250.
250
Page number to return, 0-indexed. Default 0.
0
GET /api/v1/ip-allowlist HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully retrieved IP allowlist
{ "entries": [ { "address": "10.0.0.1", "description": "text" } ], "page": 1, "total": 1, "totalPages": 1 }
Allowlist entries
POST /api/v1/ip-allowlist/validate HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 57 { "entries": [ { "address": "10.0.0.1", "description": "text" } ] }
Successfully validated allowlist
{ "address": "10.0.0.1", "description": "text", "valid": true }
When true, entries will be updated even if the list doesn't contain the requestor's IP address
PUT /api/v1/ip-allowlist HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 57 { "entries": [ { "address": "10.0.0.1", "description": "text" } ] }
Successfully replaced allowlist