Also a good thing to remember if you are ever dealing with credentials:
$ APIKEY=asdfdfds $ curl -H "x-api-key: $APIKEY" https://example.com