S
SendGrid CLI
Details
- Command
-
sg - Docs
- https://github.com/sendgrid/sendgrid-cli
Authentication
env SENDGRID_API_KEY In the SendGrid app, go to API keys and create an API key with the permissions your integration needs. SendGrid's API docs and quickstarts use this key in the Authorization: Bearer <API_KEY> header.
env SENDGRID_TOKEN For the legacy sendgrid-cli, log in at app.sendgrid.com, open your browser developer tools, inspect cookies for https://app.sendgrid.com, and copy the mako_auth_token value as described in RETRIEVE_TOKEN.md. This token is only valid for the current browser session.