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
Authorizations
Query parameters
pageSizeinteger · int32RequiredDefault:
Number of results to return per page, between 1 and 1000. Default 250.
250
pageinteger · int32RequiredDefault:
Page number to return, 0-indexed. Default 0.
0
Responses
200
Successfully retrieved IP allowlist
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/ip-allowlist HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
],
"page": 1,
"total": 1,
"totalPages": 1
}
Authorizations
Body
Responses
200
Successfully validated allowlist
application/json
Responseone of
or
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
post
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"
}
]
}
{
"address": "10.0.0.1",
"description": "text",
"valid": true
}
Authorizations
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
400
Bad Request
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
put
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"
}
]
}
{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
],
"page": 1,
"total": 1,
"totalPages": 1
}
Last updated
Was this helpful?