> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mangrovesystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Security

> Set a maximum lifetime and an IP allowlist for your account's API tokens.

Under **Account Admin → Security**, you can limit how long your account's API tokens last and which IP addresses they work from. Both limits cover tokens for the account itself, its users, its suppliers and its customers. Account Admins can change them. Signing in to the Mangrove dashboard in the browser is not affected.

When a change shortens the lifetime limit, sets or clears the network list, or would block a token in use, saving asks you to confirm first and lists what the change does to tokens that already exist.

### Maximum API token lifetime

Pick **30 days**, **60 days**, **90 days**, **180 days** or **1 year**, or leave it at **No limit**.

While a limit is set:

* New tokens must expire within it, and **No expiration** is not offered when creating one.
* Saving a shorter limit shortens existing tokens to fit. A token already older than the new limit stops working when you save, and the confirmation counts how many will.
* Loosening the limit applies to new tokens only. Tokens that were shortened or have expired keep their dates.

The lifetime limit does not apply to [MCP connections](https://docs.mangrovesystems.com/api-reference/mcp-setup.md) made by signing in to Mangrove. A connection that passes an API token in the `X-Mangrove-Token` header uses an ordinary token, so the limit applies to it.

### Allowed networks for API tokens

This is an IP allowlist. Add the public IP addresses your integrations call from, either a single address (`203.0.113.7`) or a CIDR range (`203.0.113.0/24`), each with an optional label. With no networks listed, tokens work from any address. Once one is listed, a request from anywhere else is refused with a [`403 network_not_allowed` error](https://docs.mangrovesystems.com/api-reference/authentication#error-handling) that names the address.

The page shows your browser's current address with a button to add it. Before you save, the confirmation lists the tokens used in the last 30 days that the new list would block, and the tokens with no recent address on record, which will be blocked if they are next used from outside the list.

> [!WARNING]
>
> The list also covers the customer portal and AI connectors:
>
> * Customers using the customer portal can reach it only from an address on the list.
> * Hosted AI connectors, such as Mangrove added to Claude on the web, reach Mangrove from shared addresses and stop working once a list is set.

After saving, **Recently blocked** lists the addresses refused in the last 7 days, with the token each one used and a button to add the address to the list.

Ranges are limited to `/8` or narrower for IPv4 and `/16` or narrower for IPv6, and private or reserved ranges are not accepted. A list holds up to 100 networks.

If your account is managed from a portfolio account, the portfolio account's own tokens follow its allowed networks rather than this list.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.