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

# auth_required

> Authentication required

export const APIKeysLink = ({children}) => {
  return <a href="https://platform.particle.pro/tokens">{children}</a>;
};

|                    |                    |
| ------------------ | ------------------ |
| **HTTP status**    | `401 Unauthorized` |
| **Error code**     | `auth_required`    |
| **Resolve action** | `login`            |

## What happened

The request did not include valid user credentials. This error is returned by Particle Pro platform endpoints that require a logged-in user session (JWT). Content API endpoints use [`api_key_required`](/errors/api_key_required) instead.

## How to fix

<Steps>
  <Step>
    If you are a human user, log in to the platform to obtain a valid session.
  </Step>

  <Step>
    If you are building an integration, use an API key instead. Create one from the <APIKeysLink>API Keys page</APIKeysLink> and authenticate via the `X-API-Key` header or `Authorization: Bearer` header.
  </Step>
</Steps>
