Send an API key header.
Section: HTTP Auth and Security
API key in header
bash
bash
curl -H 'x-api-key: YOUR_API_KEY' https://api.example.com/dataExplanation
Many APIs require custom key headers.
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 HTTP Auth and Security
AWS SigV4 request signing
Sign an AWS-compatible HTTP request using SigV4.
Mutual TLS with client cert
Authenticate using a client certificate and key.