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

# Authenticate to the API

Create an API key and make your first request. The API authenticates with a bearer token, and the endpoints it reaches need a Team-plan account.

## Create a key and call the API


    <Step title="Create a key">
        Go to [**API Keys**](https://app.sourcery.ai/dashboard/api-keys) and create a key.
    </Step>

    <Step title="Store it now">
        The key is shown once, at creation. Copy it into your secret store right away. You can't
        retrieve it later, so a lost key means creating a new one.
    </Step>

    <Step title="Make a request">
        Pass the key in the `Authorization` header as a bearer token:

        ```bash
        curl https://api.sourcery.ai/api/v1/security-issues \
          -H "Authorization: Bearer $SOURCERY_API_KEY"
        ```
    </Step>



> The endpoints require security scanning, a Team-plan capability. A key created on a lower plan
>     returns a 403 until the account is on the Team plan.

## What's next
