Authentication

Authenticating your API Requests

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.

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/v1/info"

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

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

Last updated