> ## 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`</Note>

```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"
}
```

## When you see it

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](/api-reference/authentication).


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