# Authentication

In order to submit an authenticated API request to the Monolith API, you need to include an API key in the following header value with the request.

#### X-API-KEY

This header must be present in all Monolith API HTTP requests and have a value that is a valid Monolith API key.

The Monolith API is still under development, so if you would like access, please reach out to support to request an API key.

### Example API Request

Use the "info" endpoint to get details related to your API key. This example shows how to make a simple API request to Monolith using an API key in the headers of the request.

{% code title="Python" %}

```python
import requests

# set your Monolith API key into a variable
api_key = "qucuqwqg5q3rve28ehfh" # this is a fake API key

# Set the api key in the header of the request
headers = {
	"x-api-key": api_key
}

# Use the appropriate API endpoint for your region
api_url = f"https://monolith-app.monolithforensics.com/api/v1/info"

# Execute the GET request
response = requests.get(api_url, headers=headers)

# print the JSON response to console
print(response.json())
```

{% endcode %}


---

# 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.monolithforensics.com/monolith/monolith-api/api-access/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.
