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

# Authentication

> Learn how to authenticate with the Stormkit API using API keys

The Stormkit API uses API keys for authentication. API keys can be created at three different levels, each providing different scopes of access.

## API Key Levels

Stormkit supports three levels of API keys:

### User Level API Key

Provides programmatic access to everything in your Stormkit account.

**To create a User Level API Key:**

1. Click on your profile picture in the top-right corner
2. Select **Account**
3. Scroll down to the **API Keys** section
4. Create a new API Key

### Team Level API Key

Grants access to all applications owned by a specific team.

**To create a Team Level API Key:**

1. Expand the Team toggle in the top-left corner
2. Select the gear icon of the team you want to access
3. Create a new API Key

### Environment Level API Key

Grants access to a specific environment within an application.

**To create an Environment Level API Key:**

1. Navigate to **Your App** > **Your Environment** > **Config** > **Other** > **API Keys**
2. Create a new API Key

## Making Authenticated Requests

Once you have an API key, include it in the `Authorization` header of your requests.

<CodeGroup>
  ```bash User Level API Key theme={null}
  curl -X GET \
    -H 'Authorization: Bearer <api_key>' \
    -H 'Content-Type: application/json' \
    'https://api.stormkit.io/v1/snippets?envId=4151'
  ```

  ```bash Team Level API Key theme={null}
  curl -X GET \
    -H 'Authorization: <api_key>' \
    -H 'Content-Type: application/json' \
    'https://api.stormkit.io/v1/apps'
  ```

  ```bash Environment Level API Key theme={null}
  curl -X GET \
    -H 'Authorization: <api_key>' \
    -H 'Content-Type: application/json' \
    'https://api.stormkit.io/v1/redirects?appId=48961&envId=58181'
  ```
</CodeGroup>

## API Base URL

All API requests should be made to:

```text theme={null}
https://api.stormkit.io
```

## Response Format

The API returns JSON responses. Successful requests return a `200` status code along with the requested data. Error responses include an appropriate HTTP status code and an error message.
