# Sending SendGrid Email When New Firebase Child Records Are Added

If you want to send a SendGrid email when you add new Firebase child records, you can do that using [Zapier](https://zapier.com).

You will need:

* a [Firebase](https://www.firebase.com) account
* a [SendGrid](https://sendgrid.com) account
* a [Zapier](https://zapier.com) account

## Steps

1. [Getting your accounts ready](#ready)
2. [Connecting your accounts](#connect)

### Getting your accounts ready \[#ready]

To connect your Firebase account you will need an active Firebase account. To get started with Firebase, go [here](https://www.firebase.com/tutorial/). You can learn more about getting started with Firebase on Zapier, [here](https://zapier.com/help/firebase/#how-get-started-firebase).

To link your Firebase to SendGrid, you must have an active SendGrid account. To learn more about getting started with SendGrid basics, start [here](/docs/sendgrid/api-reference/). For more information about getting started with SendGrid on Zapier, go [here](https://zapier.com/help/sendgrid/#how-get-started-sendgrid).

### Connecting your accounts \[#connect]

Click here to [Send SendGrid email when new Firebase child records are added](https://zapier.com/zapbook/zaps/3291/send-emails-with-sendgrid-when-new-firebase-child-records-are-added/).

1. Choose your Firebase account from the list of accounts, or connect a new account.
2. To connect a new Firebase account to your Zapier, enter the name of the **Firebase instance** you wish to use, and the **Secret** to authenticate the connection. You can find your secret authentication under the Auth tab.

![Form fields for Firebase instance URL and secret with instructions for obtaining the secret.](https://docs-resources.prod.twilio.com/d26e07d2a57c7687727949dcf06baea60a8b2ce3061bbb96c9b1429ef4c1a60c.png)

![Hidden password field with show button.](https://docs-resources.prod.twilio.com/47418a6aaaaebe0ffddc6a5ac2840b37e36802769209503d18a5ddc7a6e1d4b3.png)

3. Enter the **Path to Data** that you wish for the Zap to watch for child records.

![Firebase add child record form with path to data input field.](https://docs-resources.prod.twilio.com/39d6c704f99f210163861d1ff88e042dcf134aa201eca7eb7f395cd42e9fbcc1.png)

4. Choose your account from the list of accounts, or connect a new account.
5. To connect your SendGrid account to Zapier for the first time, enter the credentials of an API/mail account. If you have not created this account, you can do so [here](https://sendgrid.com/credentials).

![Fields for entering SendGrid API username and password, with link to credentials page.](https://docs-resources.prod.twilio.com/ffe029391df0aa33b59c880498dddb012b06f81705ab85a14259471c720930ac.png)

6. Using fields from Firebase, create and customize the **To**, **From**, and **Subject** email message that the Zap will send.

![SendGrid email form with fields for To, From, and Subject, each with insert fields option.](https://docs-resources.prod.twilio.com/4236dd0afaaa53cc43393ce19d12573fb2eaa9b20340fa1178eb10a69db41ad3.png)

7. Click **Save + Finish**.

Now test the Zap to make sure it works. Once you are satisfied with the results, new child records created in Firebase will send corresponding emails in SendGrid.

> \[!NOTE]
>
> If you ever want to change this Firebase and SendGrid integration, just go to [your Zapier dashboard](https://zapier.com/app/dashboard) and tweak anything you'd like.

You can also check out all that's possible with [Firebase on Zapier](https://zapier.com/zapbook/firebase/), and other ways to connect [Firebase and SendGrid](https://zapier.com/zapbook/firebase/sendgrid).
