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

# Conflicting credentials

> HTTP 400, code conflicting_credentials

> [!NOTE]
>
> The problem document's `type` field points here: `https://docs.costgraph.ai/pricing/errors/conflicting_credentials`

```json theme={null}
{
  "type": "https://docs.costgraph.ai/pricing/errors/conflicting_credentials",
  "title": "Conflicting credentials",
  "status": 400,
  "code": "conflicting_credentials",
  "detail": "Send either an API key or an access token, not both"
}
```

## Common causes

The request sent both an API key in `X-API-KEY` and an access token in `Authorization`.

## What to do

Send one credential per request. See [Authentication](https://docs.costgraph.ai/api-reference/authentication.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.