Replace the workspace-level ingest IP allowlist
curl --request PATCH \
--url https://app.hookie.ai/admin/api/ip-allowlist \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"ip_allowlist": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({ip_allowlist: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/ip-allowlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/ip-allowlist"
payload = { "ip_allowlist": ["<string>"] }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"ip_allowlist": [
"<string>"
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}IP allowlist
Replace the workspace-level ingest IP allowlist
PATCH
/
admin
/
api
/
ip-allowlist
Replace the workspace-level ingest IP allowlist
curl --request PATCH \
--url https://app.hookie.ai/admin/api/ip-allowlist \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"ip_allowlist": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({ip_allowlist: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/ip-allowlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/ip-allowlist"
payload = { "ip_allowlist": ["<string>"] }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"ip_allowlist": [
"<string>"
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Body
application/json
Full replacement of the workspace allowlist. null, omitted, or an empty array CLEARS it (the column is set to NULL), which means every source IP is accepted again.
Maximum array length:
64A bare IPv4/IPv6 address or a CIDR block. Entries are trimmed.