Skip to main content
Admins cap how long access tokens live and which networks can use them, under Settings → Access policy.
Access policy card with a 90-day maximum token lifetime, three allowed network ranges and an Add my address button

Settings → Access policy: a 90-day cap and three allowed ranges.

Set a token lifetime

New tokens expire after 90 days when no expiry is supplied and the organization has no cap. Explicit lifetimes are preserved. Existing tokens keep their expiry, including tokens without one. An organization can choose a longer cap, up to 730 days; when a cap is set, callers must supply a lifetime within it.
1

Choose a limit

Under Maximum token lifetime, pick Limit lifetime in days and enter 1 to 730.
2

Save

New tokens must expire within the cap.
3

Rotate older tokens

Existing tokens keep their expiry. The card counts those without expiry or over the cap.
Expired tokens are refused; running jobs finish. App sign-in tokens are exempt.

Restrict tokens to your networks

1

List your networks

Under Allowed networks for access tokens, enter up to 50 IPv4 or IPv6 addresses or CIDR ranges, one per line.
2

Add your own address

Add my address adds the address you are calling from.
3

Save

Other addresses are refused. An empty list allows any.
The list covers app sign-in tokens too. An app calling from its own servers stops working until its ranges are listed.
OneShot checks the address that connects to it; X-Forwarded-For entries the caller adds are ignored. Wallet-signed and soul-key calls are not affected. Compute connections use a separate setting: Sandbox egress.

API

Both return { success: true, data: { max_token_lifetime_days, token_ip_allowlist, active_tokens_without_expiry, active_tokens_exceeding_cap, caller_ip } }. Leave out token_ip_allowlist to keep the saved list; null or [] clears it.