Authentication
Every request to the Masar API requires an API key. Keys are scoped to your organization and carry usage limits based on your plan.
Create an API Key
- Sign in at masar.almadar.io
- Navigate to Settings > API Keys
- Click Create Key, give it a name (e.g., "dev-agent"), and copy the value
- Store it securely. The full key is shown only once.
Set the Environment Variable
The SDKs read from MASAR_API_KEY by default:
export MASAR_API_KEY="msk_live_abc123..."
Add this to your .bashrc, .zshrc, or .env file so it persists across sessions.