Skip to content
Black Friday: 50% off for life for the first 20 customers, then 40% off your first year. Ends November 30.
Error codes · Authentication & API keys

RU-1007: API key is restricted to an IP allowlist

The key is valid, but it carries an IP allowlist and this request did not arrive from an address inside it. The response never says which addresses are allowed; that list is visible only in the dashboard.

Where it is raised

  • Checks: 14 routes
  • Metrics: 1 route
  • Status Pages: 11 routes
  • Notification Channels: 6 routes
  • Incidents: 4 routes
  • Maintenance: 3 routes
  • Errors: 8 routes
  • Agents: 6 routes
  • Keyed MCP endpoint, same status and body
  • The allowlist field on the account's API key settings

What triggers it

The key has an allowlist of CIDR ranges and the caller's resolved address is outside every one. It is evaluated after the key itself is found valid, so a wrong key still answers RU-1002 first. A key with an empty allowlist skips the check.

Example response

GET /api/v1/checks
HTTP 403

{
  "error": "This API key is restricted to an IP allowlist and this request did not come from an allowed address.",
  "code": "RU-1007",
  "docs": "https://realuptime.io/kb/errors/ru-1007"
}

Common causes

  • The caller's outbound IP changed (a new CI runner, a redeployed server, a NAT egress that rotated) and the allowlist was not updated.
  • The request came through a proxy, VPN, or a different cloud region than the one the list was written for.
  • The key's allowlist was set from the dashboard by a colleague and the integration using it was never moved onto an allowed network.
  • Traffic reaches realuptime over IPv6 while the list only names IPv4 ranges, or the reverse.

How to fix it

  1. Find the caller's real public egress address (for example `curl https://api.ipify.org` from the host that makes the requests).
  2. In the dashboard's API & MCP access section, open the key's menu, choose Edit IP allowlist, and add that address or its range in CIDR form (`203.0.113.9`, `203.0.113.0/24`, `2001:db8::/32`). Changes apply on the next request.
  3. Or clear the allowlist entirely to make the key valid from anywhere again, and use a separate restricted key for the fixed-address integration.

Related codes