APITube Help Center

Why is my request blocked by IP or scope?

Check the IP, domain and endpoint restrictions on your key

Erick Horn

Written by Erick Horn

June 27, 2026

Updated October 16, 2026

Why is my request blocked by IP or scope?

Read errors[0].code in the 403 response. ER0601 means the caller’s IP is not allowed, ER0602 means the domain is not allowed, and ER0603 means the key lacks permission for that endpoint. Update the matching restriction under API Keys.

{
  "status": "not_ok",
  "request_id": "…",
  "errors": [
    {
      "status": 403,
      "code": "ER0601",
      "message": "Access denied: your IP address is not allowed for this API key.",
      "links": { "about": "https://docs.apitube.io/platform/news-api/http-response-codes" },
      "timestamp": "2026-06-27T12:00:00.000Z"
    }
  ]
}

A missing, invalid or expired key returns 401 instead. For that status, see authentication errors.

What does ER0601 (IP address not allowed) mean?

The key’s IP list does not include the public address your request comes from. If your app runs on a server, check that server’s outbound IP. It may differ from your laptop’s address or change when you move servers or networks.

An empty IP list allows all IPs. ER0601 appears only when an IP restriction is set.

How to fix an ER0601 IP block

  1. Find the public outbound IP of the machine sending the request.
  2. Open API Keys → your key → API Key Restrictions.
  3. Add it under Allowed IP Addresses, one entry per line, and save. The list accepts up to 50 entries.

Accepted forms are:

  • One IPv4 or IPv6 address, such as 203.0.113.7.
  • A CIDR range, which describes a block of addresses, such as 203.0.113.0/24. IPv4 prefixes run from /0 to /32; IPv6 from /0 to /128.
  • A prefix wildcard, such as 203.0.113.*.
  • *, which allows any IP.

Clearing the list removes the IP restriction. Changes apply to the next request.

The API Key Restrictions card where allowed IP addresses are entered one per line and saved

What does ER0603 (scope not authorized) mean?

A scope is permission to use an endpoint. The response names the required scope. For example, /v1/news/everything needs everything, /v1/news/top-headlines needs top_headlines, /v1/news/raw needs news_raw, and /v1/balance needs balance.

Reading webhooks needs webhooks:read; updating or deleting them needs webhooks:write. A key without scope restrictions has full access.

How to fix an ER0603 scope block

  1. Read the Required scope value in the error message.
  2. Open API Keys → your key → Permissions.
  3. Select the needed endpoint, or choose Full access if the key needs every endpoint.

An empty selection or a selection of every endpoint means full access. Give a key the permissions its app needs.

Yes. Check Allowed HTTP Referrers in the same restrictions panel. The request’s Referer or Origin domain must match the list. See API error codes and HTTP responses for the restriction codes.

Common Questions

The API saw a different IP than the one I expected — why?

The public outbound IP can belong to your server, office gateway, proxy or cloud network. It is not usually a local address such as 192.168.x.x. If your service uses changing public IPs, use its documented address ranges or a stable outbound address.

In what order are these checks run?

An expired key returns 401 ER0230 first. For a valid key, IP, referrer and scope restrictions are checked in that order. Fix the reported problem, then retry; another restriction may also need attention.

I have both an IP allow-list and scopes — does a request need to pass both?

Yes. The IP, referrer and endpoint permissions must all allow the request when those restrictions are set. The error code identifies the restriction that blocked this attempt.


Related Articles