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

# Authentication

The Min Strøm API uses **Bearer** authentication.

## Prerequisites

1. API key
2. API secret

<Card title="Get access" icon="lock-open" href="mailto:engberg@minstroem.app?subject=Request for API access">
  Click here to get in contact to obtain API key and secret.
</Card>

## Generate Bearer token

<Steps>
  <Step title="Create hash">
    Create an `HMAC-SHA256` hash of the **API key** with **API secret** as key
  </Step>

  <Step title="Concatenate">
    Concatenate your **API key** with the hashed value with a `:`

    ```ruby theme={null}
    API_KEY:HASHED_VALUE
    ```
  </Step>

  <Step title="Base64 encode">
    Create a Base64 encoded string of the above concatenation
  </Step>
</Steps>

Include this as **Bearer** token in the HTTP header:

```json theme={null}
"Authorization": "Bearer <token>"
```
