Send a static API key in a header.
Section: Authentication patterns
API key header
http
http
X-API-Key: sk_live_123456Explanation
If you support API keys, prefer headers over query parameters to reduce accidental leakage in logs and URLs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Authentication patterns
Do not put tokens in the URL
Keep credentials out of path and query strings.
Return 403 for insufficient role
Authenticated but lacks required permission.