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

# Authentication

> Learn how to authenticate with the Decisionly API

The Decisionly API uses API keys to authenticate requests. You can view and manage your API keys from your dashboard [settings](https://decisionly.com/settings).

## API Key Prefixes

* Test mode secret keys have the prefix `test_`
* Live mode secret keys have the prefix `live_`

## HTTP Basic Auth

Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value. You do not need to provide a password.

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.decisionly.com/v2/issuer/cases \
    -u test_d0019b48d05849a6:
  ```

  ```javascript Node.js theme={null}
  const apiKey = 'test_d0019b48d05849a6';
  const auth = Buffer.from(`${apiKey}:`).toString('base64');

  fetch('https://api.decisionly.com/v2/issuer/cases', {
    headers: {
      'Authorization': `Basic ${auth}`
    }
  });
  ```

  ```python Python theme={null}
  import requests

  api_key = 'test_d0019b48d05849a6'
  response = requests.get(
      'https://api.decisionly.com/v2/issuer/cases',
      auth=(api_key, '')
  )
  ```
</CodeGroup>
