Skip to main content

API Authentication

Odos APIs support two environments: public and enterprise.

The public API does not require registration.

Enterprise API keys must be passed in the header as:

x-api-key: YOUR_KEY

Never embed secrets in client-side code. Keep keys in a server-side secret manager or environment variable. It is highly recommended to use dotenv for secure key management.

JavaScript

npm install dotenv

Python

pip install python-dotenv

Create your .env file

touch .env

Save your .env file with the following parameters:

ODOS_API_KEY=your_enterprise_api_key