Skip to main content

Authentication

The InertialAI API uses API keys with HTTP Bearer authentication. Send your key in the Authorization header on every request.

API base and header

The base URL for all API endpoints is:

https://inertialai.com/api/v1

Send your API key as a bearer token in the Authorization header:

Authorization: Bearer <YOUR_API_KEY>

API key management

You can create and manage your API keys in the API Keys section of the InertialAI dashboard.

After signing in to your account, click the API Keys tab in the sidebar to view, create, and revoke keys.

To create a new key:

  1. Click the Create API Key button located above the list of existing keys.
  2. Provide a title for the API key to help you identify its purpose.
  3. Click Create Key to generate the key.
  4. The generated key will be displayed only once, so make sure to copy and store it securely.

We recommend setting the API key as an environment variable in your development environment for easy access. On Unix-based systems, you can do this by adding the following line to your shell profile (e.g., .bashrc, .zshrc):

export INERTIALAI_API_KEY="your_api_key_here"

Save the file and source your terminal to apply the changes. To verify that the environment variable is set correctly, you can run:

echo $INERTIALAI_API_KEY

If the key is displayed, it means the environment variable is set up correctly.

Next steps