title: Sendgrid API curl request
body: <p>I am trying to test the SendGrid API using curl.  I have tested the JSON portion using the JSON Online Validator so I know it right.  But the call keeps erroring.  I am trying to run it from the Windows 10 Command Line.  Here is my code and the error:</p>
  <pre><code>c:\windows\system32\curl --request POST --url &quot;https://api.sendgrid.com/v3/mail/send&quot; --header &quot;Authorization: Bearer [myauthcode]&quot; --header &quot;Content-Type: application/json&quot; { &quot;personalizations&quot;: [{ &quot;to&quot;: [{&quot;email&quot;: &quot;rweiser@polylutions.com&quot; }],&quot;cc&quot;: [{&quot;email&quot;: &quot;rweiser@thinktrg.com&quot;}]}],&quot;from&quot;: {&quot;email&quot;: &quot;rick@realweiser.com&quot; },&quot;subject&quot;: &quot;Testing Sendgrid&quot;, &quot;content&quot;: [{ &quot;type&quot;: &quot;text/plain&quot;, &quot;value&quot;: &quot;test email&quot; }]}
  {&quot;errors&quot;:[{&quot;message&quot;:&quot;Bad Request&quot;,&quot;field&quot;:null,&quot;help&quot;:null}]}curl: (3) unmatched brace in URL position 1:
  {
   ^
  </code></pre>
  <p>What am I doing wrong?</p>
  <p>Thanks for your help,</p>
  <p>Rick</p>