API Authentication

Securing your Linear Canal API server.

API Keys

By default the server runs open (local dev). Set API_KEY to require authentication on all requests:

bash
# .env
API_KEY=your-secret-key-here
bash
curl -H "X-API-Key: your-secret-key-here" \
     http://localhost:3001/api/v1/projects

Bearer Token

Alternatively, use the Authorization header:

bash
curl -H "Authorization: Bearer your-secret-key-here" \
     http://localhost:3001/api/v1/projects
API Authentication | Linear Canal Docs | Linear Canal