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

# Unauthenticated

> HTTP 401, code unauthenticated

<Note>The problem document's `type` field points here: `https://docs.costgraph.ai/pricing/errors/unauthenticated`</Note>

```json theme={null}
{
  "type": "https://docs.costgraph.ai/pricing/errors/unauthenticated",
  "title": "Unauthenticated",
  "status": 401,
  "code": "unauthenticated"
}
```

## When you see it

No API key or bearer token was presented, or the credential is not valid.

## What to do

Send `X-API-KEY` with a valid CostGraph API key, or an `Authorization: Bearer` token.
