Robot tokens accept an IP allowlist
Published: November 27, 2026
v2025-07-11
The Access API robots endpoints now accept and return an IP allowlist for each robot token. Requests made with the token from any other address are refused. Available to Enterprise organizations on v2025-07-11.
New features
- Robots:
POST /access/{resourceType}/{resourceId}/robotsandPUT /access/{resourceType}/{resourceId}/robots/{robotId}acceptnetworkPolicy. SetnetworkPolicytonullto remove the allowlist. BothGETendpoints returnnetworkPolicy, ornullfor a token without one. See Restrict a robot token to specific IP addresses and the Access API reference.
{
"networkPolicy": {
"allowedSourceCidrs": ["34.120.10.5", "34.121.0.0/24"]
}
}Changes
- Robots:
PUT /access/{resourceType}/{resourceId}/robots/{robotId}no longer requiresexpiresAt. SendexpiresAt,networkPolicy, or both. See Authentication and tokens.
Before you use it
- An allowlist holds up to 10 IPv4 addresses or ranges, each
/16or narrower. IPv6, private ranges, hostnames, and wildcards are rejected with HTTP400and anetwork_policy_*error code. - Organizations without the feature get HTTP
403withRobot network policies are not available for this organization. Removing an allowlist withnullalways works. - Tokens used by Sanity Functions can't have an allowlist, and a robot can't set or remove its own allowlist.
Related documentation
Restrict a robot token to specific IP addresses
Add an IP allowlist to a project or organization robot token so it only works from your IP addresses, in Manage or with the Access API.
Authentication and tokens
How to create tokens and make authenticated requests.
Access API reference
A centralized API to manage resource access control through roles and permissions.