Authentication
All API requests require authentication using an API key.
Getting Your API Key
Section titled “Getting Your API Key”- Log in to your MidLyr Dashboard
- Navigate to Settings > API Keys
- Click Create New Key
Using Your API Key
Section titled “Using Your API Key”Set your API key in your environment:
export MIDLYR_API_KEY="ml_..."Include it in the Authorization header when calling the HTTP API:
curl https://api.midlyr.com/api/v1/regulations \ -H "Authorization: Bearer $MIDLYR_API_KEY"The MCP server and CLI also read MIDLYR_API_KEY from the environment.