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 x-api-key header when calling the HTTP API:
curl https://api.midlyr.com/api/v1/regulations \ -H "x-api-key: $MIDLYR_API_KEY"The CLI reads MIDLYR_API_KEY from the environment. Self-configured MCP clients can pass the same key in the x-api-key header; OAuth-based clients can use a bearer access token instead.