How to limit an API key to specific endpoints
Choose which API endpoints a key may use
Written by Erick Horn
August 22, 2026
Updated October 16, 2026
How to limit an API key to specific endpoints
Use scopes to choose which endpoints an API key can call. Set them when creating a key or on its detail page. A request outside the selected scopes returns 403 ER0603.
By default, no scopes are selected, which gives full endpoint access within your plan. Add scopes when you want to restrict a key to particular tasks.
What are API key scopes?
A scope is permission to use an endpoint or group of related endpoints. The dashboard groups the available names as follows:
- News:
everything,news_raw,top_headlines,news_local,story,article,category,topic,industry,entity,trends,news_count,fact_check. - Reference:
people,companies,journalists. - Suggest:
suggest. - Streaming:
stream,websocket. - Webhooks:
webhooks:read,webhooks:write. - Account:
balance.
For example, everything allows /v1/news/everything, while article allows /v1/news/article. Selecting every scope has the same effect as selecting none: full access.
How to set scopes on a key
Use the dashboard; scopes cannot be changed through a News API request.
- For a new key: choose scopes in Create key, alongside the name and expiry.
- For an existing key: open its detail page and use Scopes. Choose Full access, Read-only, a whole group, or individual checkboxes, then save.
Read-only includes everything except permission to modify webhooks. An unknown scope returns 422 Invalid scopes when saving.
See how to create, rename and revoke API keys.

What happens when a key calls a blocked endpoint?
The API returns 403 ER0603, and the message names the required scope:
{
"errors": [
{
"status": 403,
"code": "ER0603",
"message": "Access denied: this API key is not authorized for this endpoint. Required scope: article."
}
]
}
For example, a key with only everything and top_headlines can search and fetch headlines. To call /v1/news/article, add article.
This error means the key is valid but lacks permission for the endpoint. A 401 means authentication failed. See why a request is blocked by IP or scope.
Common Questions
How do webhook scopes work?
Reading webhook configuration with GET needs webhooks:read. Creating, updating, or deleting webhooks needs webhooks:write. The Read-only preset includes the first and excludes the second.
What happens if a key has no scopes set?
It has full endpoint access within its plan. Add selected scopes to restrict it, or use Full access to remove that restriction.
Who can change a key’s scopes?
Workspace owners, admins, and members can change them. Viewers cannot. Scopes apply whether the key is sent in X-API-Key or api_key.
Are scopes the same as an expiry date or IP restriction?
No. Scopes control endpoints (ER0603), IP restrictions control allowed addresses (ER0601), and expiry controls the end date (ER0230). You can use all three on the same key.