---
title: "Forbidden (forbidden)"
description: "PubNio forbidden problem, HTTP 403: An API key lacks the scope the operation declares, a browser session writes from another origin, or the workspace rejects the actor."
---

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

# Forbidden (forbidden)

HTTP 403 Forbidden. An API key lacks the scope the operation declares, a browser session writes from another origin, or the workspace rejects the actor.

## When it happens

Every API operation except [`GET /api/v1/audit-logs/actions`](https://pubnio.com/api/v1/docs#tag/audit/GET/api/v1/audit-logs/actions) and [`GET /api/v1/billing/plans`](https://pubnio.com/api/v1/docs#tag/billing/GET/api/v1/billing/plans) declares it.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/forbidden/",
  "status": 403,
  "title": "Forbidden",
  "code": "forbidden",
  "requiredScope": "publish",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field           | Type                                                            | Always present |
| --------------- | --------------------------------------------------------------- | -------------- |
| `requiredScope` | `"read"`, `"publish"`, `"engage"`, `"ads_read"`, `"ads_manage"` | No             |
| `param`         | string                                                          | No             |
| `nextAction`    | string                                                          | No             |

## Recovery for agents

- Retry with an API key whose scopes include `requiredScope`, or sign in with OAuth. A browser write must come from the same origin.
- Do what `nextAction` says.
- `param` is the field to change.

## Retryable

No: the SDKs mark HTTP 403 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [General problems](https://pubnio.com/docs/problems/#general)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/forbidden/index.mdx
