Send emails via SendGrid from Airplane runbooks.
The SendGrid resource allows runbooks to send emails via SendGrid. For a high-level introduction to resources, see the resources page.

Creating a SendGrid resource

To create a new SendGrid resource, visit resources for your team, click the "new" button, and select the SendGrid resource type. Enter your connection details in the form:
Name should be a human-readable name for your resource.
API Key should be a SendGrid API key. If you don't already have one, create one from the API Keys page in the SendGrid app using their guide. Your API key must have at least Full Access to the Mail Send permission.

Accessing from runbooks

You can use your SendGrid resource in runbooks by adding an email block.

Field reference

When this resource is attached to a task, its fields are available in the JSON environment variable AIRPLANE_RESOURCES under the alias it was attached with. The available fields are documented below.

The ID of the resource.


The slug of the resource as defined in the resource settings page.


The name of the resource.

kindstring(value: sendgrid)

The kind of the resource.


The SendGrid API key.