The API server authenticates all requests made to the API. Each API request must include an x-api-key header with your API key (see the example on the right). Each authentication token is associated with a specific user, so do not share API keys.

import requests
import json

base_url = "https://api.enigma.com"
headers = {"x-api-key": "YOUR-API-KEY"} # <-- AUTH HEADER
let requesturl = 'https://api.enigma.com/';
// Configure request headers
let headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('x-api-key', 'YOUR-API-KEY'); // <-- AUTH HEADER
let requesturl = 'https://api.enigma.com/';
// Configure request headers
let headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('x-api-key', 'YOUR-API-KEY'); // <-- AUTH HEADER

To obtain an API key, go to https://console.enigma.com and create an account. Once you’ve verified your email address, you’ll be able to view your API key.

If the authorization header is missing or is improperly formatted, the API returns an HTTP response with status code 403 Forbidden and a JSON-encoded Forbidden error.