# Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

```
Authorization: Bearer sk_live_your_api_key_here
```

#### Getting Your API Key

1. Log in to your Saber account at [ai.saber.app](https://ai.saber.app)
2. Navigate to **Settings** → **API Keys**
3. Click **Create API Key** and provide a name
4. Copy the key immediately - it will only be shown once
5. Store the key securely (environment variable, secret manager, or vault)

#### Security Best Practices

**Do:**

* Store keys securely using environment variables or secret managers
* Use different API keys for different environments (staging, production)
* Monitor API usage logs regularly
* Rotate keys periodically

**Don't:**

* Hardcode API keys in your source code
* Share API keys in public repositories or documentation
* Use the same API key across multiple external systems
* Commit API keys to version control

***


---

# 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://developers.saber.app/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.
