Skip to content

Instantly share code, notes, and snippets.

@brandonmwest
Last active August 29, 2015 14:01
Show Gist options
  • Save brandonmwest/1bec99fd56d8b3cc1227 to your computer and use it in GitHub Desktop.
Save brandonmwest/1bec99fd56d8b3cc1227 to your computer and use it in GitHub Desktop.
SendGrid web api v3 curl example
curl -X POST -d '{"name":"example_name"}' -H "Content-Type: application/json" -u sendgrid_username https://api.sendgrid.com/v3/templates
curl -X POST -d '{"name":"pork", "subject":"bacon <%subject%>", "html_content":"<%body%>", "plain_content":"<%body%>"}' -H "Content-Type: application/json" -u sendgrid_username https://api.sendgrid.com/v3/templates/60414495-6787-441b-8b08-3979499bba7a/versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment