# Authentication

### Why Do I Need an API Key?

The API key is required to:

* Securely identify your application or integration.
* Enable access to protected endpoints and features.
* Track usage and ensure fair access for all users.

### How to Get an API Key?

Create a MNEE Developer account and generate your API keys for free.

<a href="https://developer.mnee.net/" class="button primary" data-icon="code">Developer Portal</a>

### Using Your API Key

Once you have your API key, you can use it in your application as follows:

```typescript
import Mnee from '@mnee/ts-sdk';

const mnee = new Mnee({
  environment: 'sandbox', // or 'production'
  apiKey: 'YOUR_API_KEY_HERE',
});
```

{% hint style="danger" %}
Make sure to keep your API key private and never share it publicly.
{% endhint %}

### Troubleshooting

* If you have any questions, please contact **<developer@mnee.io>**

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mnee.io/getting-started/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
