Unique identifier for a given organization.
If provided, return only the allowlist for this specific API key.
allowlist field
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_ip_allowlist \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"publicKey": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().getIpAllowlist({
organizationId: "<string> (Unique identifier for a given organization.)",
publicKey: "<string> (If provided, return only the allowlist for this specific API key.)"
});
{
"allowlist": {
"organizationId": "<string>",
"rules": [
{
"cidr": "<string>",
"label": "<string>",
"createdAt": "<string>"
}
],
"publicKey": "<string>",
"enabled": "<boolean>",
"onEvaluationError": "<string>"
}
}
Get IP allowlist and rules for an organization.
Show allowlist details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_ip_allowlist \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"publicKey": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().getIpAllowlist({
organizationId: "<string> (Unique identifier for a given organization.)",
publicKey: "<string> (If provided, return only the allowlist for this specific API key.)"
});
{
"allowlist": {
"organizationId": "<string>",
"rules": [
{
"cidr": "<string>",
"label": "<string>",
"createdAt": "<string>"
}
],
"publicKey": "<string>",
"enabled": "<boolean>",
"onEvaluationError": "<string>"
}
}
Was this page helpful?