---
title: "Unauthorized (authentication-required)"
description: "PubNio authentication-required problem, HTTP 401: The request carries no session, bearer token, or API key that resolves to an actor, or the signed-in user's account is missing or deactivated."
---

> 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.

# Unauthorized (authentication-required)

HTTP 401 Unauthorized. The request carries no session, bearer token, or API key that resolves to an actor, or the signed-in user's account is missing or deactivated.

## 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/authentication-required/",
  "status": 401,
  "title": "Unauthorized",
  "code": "authentication_required",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

## Recovery for agents

- Send `Authorization: Bearer <token>` with an API key or OAuth access token. Every 401 also carries `WWW-Authenticate: Bearer realm="PubNio"`.

## Retryable

No: the SDKs mark HTTP 401 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/authentication-required/index.mdx
