From 0a5cbffbb5b1289606e05341cd3115bce9e1edd1 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Sun, 19 Jun 2016 08:38:17 -0700 Subject: [PATCH] Fix cURL example --- source/API_Reference/Web_API_v3/Mail/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/API_Reference/Web_API_v3/Mail/index.html b/source/API_Reference/Web_API_v3/Mail/index.html index f07a803e67..5b98303df7 100644 --- a/source/API_Reference/Web_API_v3/Mail/index.html +++ b/source/API_Reference/Web_API_v3/Mail/index.html @@ -60,7 +60,7 @@ {% endanchor %} {% codeblock lang:bash %} -curl =X "POST" "https://api.sendgrid.com/v3/mail/send" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d "[YOUR DATA HERE]" +curl -X "POST" "https://api.sendgrid.com/v3/mail/send" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d "[YOUR DATA HERE]" {% endcodeblock %} You must authenticate every API request to send mail by including an Authorization header. This header should include the authorization type of Bearer, followed by your API Key that has already been assigned the necessary permissions. Click here for more information.