Authentication


The Magnet AI API uses API keys to authenticate requests. 

All API requests should include your API key in an x-api-key HTTP header. 

If you’re using Demo Magnet AI hosted in Ideaport Riga environment: 

Ideaport Riga will provide you with the key. 

If Magnet AI is deployed in your environment: 

Your admin should generate the key and set it as an environment variable in the Magnet AI backend.

The naming convention for this variable is API_KEY_XXX, where XXX is a unique identifier for the API consumer. 

Each API key must be unique.