S

SendGrid CLI

CLI discovered

Details
Command
sg
Docs
https://github.com/sendgrid/sendgrid-cli
Authentication
SendGrid API key api_key discovered Get key ↗
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.

SendGrid browser session token (`mako_auth_token`) bearer discovered Get token ↗
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.