I get 403 API_KEY_SCOPE or API_KEY_IP_DENIED
Fix Opttab API calls refused with 403 because of a missing scope or an IP address that is not allowed.
A 403 means the key is valid but this request is not allowed. The error field says why.
error | Why | Fix |
|---|---|---|
API_KEY_SCOPE | The key does not have the scope this route needs. | In Settings › API, click Edit on the key and tick the scope. |
API_KEY_IP_DENIED | You are calling from an address that is not on the key's Allowed addresses. | Add your server's IP address or CIDR range to the key, or clear the list to allow every address. |
Which scope each route needs:
| Scope | Routes |
|---|---|
v2:org | /v1/external/workspace, /v1/external/competitors |
v2:prompts | /v1/external/prompts…, /v1/external/responses/{responseId}/sources, /v1/external/topics |
v2:metrics | /v1/external/metrics/summary, /v1/external/metrics/kpis |
Only owners and admins can edit keys. See API keys.
Was this page helpful?