Passing API key with HTTP header in cURL
<p>I have an API Proxy in Apigee which is authenticated with an API key. I'm passing the key with my HTTP request header using cURL, with this command:</p>

<pre><code>curl -v -H "apikey: my_key" http://api_org-test.apigee.net/v1/helloapikey
</code></pre>

<p>I get this error:</p>

<pre><code>Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the 
"apikey: my_key" value of type "System.String" to 
type "System.Collections.IDictionary".
</code></pre>

<p>When I  modify my policy to look for the key in query parameter rather than the header, it works fine.  Am I missing something here?</p>