# SendGrid connector

> Connect SendGrid to Windsor.ai: 129 fields in 16 tables, and how to query them or send them to a destination.

The SendGrid connector pulls your SendGrid data into Windsor.ai. You can query it with one API, send it to a destination, or ask about it in Claude or ChatGPT.

## Connect SendGrid

1. Open [SendGrid in Windsor.ai](https://onboard.windsor.ai/app/sendgrid) and sign in.
2. Authorize SendGrid, or enter the credentials that the screen asks for.
3. Select the accounts to include.

## Available data

129 fields in 16 tables.

| Table | Fields | Examples |
| --- | --- | --- |
| Other | 21 | Account ID, Account Name, Data fetched at, Data Source, Date |
| contacts | 20 | contacts.address_line_1, contacts.address_line_2, contacts.alternate_emails, contacts.city, contacts.contact_id |
| single_sends | 18 | single_sends.ab_phase, single_sends.ab_variation, single_sends.aggregation, single_sends.id, single_sends.name |
| stats_automations | 16 | stats_automations.aggregation, stats_automations.id, stats_automations.stats, Stats Automations Stats Bounce Drops, Stats Automations Stats Bounces |
| segments | 8 | segments.contact_count, segments.created_at, segments.id, segments.name, segments.next_sample_update |
| campaigns | 6 | campaigns.created_at, campaigns.id, campaigns.is_abtest, campaigns.name, campaigns.status |
| unsubscribe_groups | 6 | unsubscribe_groups.description, unsubscribe_groups.id, unsubscribe_groups.is_default, unsubscribe_groups.last_email_sent_at, unsubscribe_groups.name |
| suppression_groups | 5 | suppression_groups.description, suppression_groups.id, suppression_groups.is_default, suppression_groups.name, suppression_groups.unsubscribes |
| templates | 5 | templates.generation, templates.id, templates.name, templates.updated_at, templates.versions |
| blocks | 4 | blocks.created, blocks.email, blocks.reason, blocks.status |
| bounces | 4 | bounces.created, bounces.email, bounces.reason, bounces.status |
| lists | 4 | lists._metadata, lists.contact_count, lists.id, lists.name |
| suppression_group_members | 4 | suppression_group_members.created_at, suppression_group_members.email, suppression_group_members.group_id, suppression_group_members.group_name |
| invalid_emails | 3 | invalid_emails.created, invalid_emails.email, invalid_emails.reason |
| spam_reports | 3 | spam_reports.created, spam_reports.email, spam_reports.ip |

1 more table are in the field list.

The full list, with the type and description of each field, is at `https://connectors.windsor.ai/sendgrid/fields`.

## Query the data

Request fields by their IDs. For example:

```url
https://connectors.windsor.ai/sendgrid?api_key=YOUR_API_KEY&fields=date,contacts__address_line_1,contacts__address_line_2&date_preset=last_7d
```

## Next steps

- [Send the data to a destination](https://windsor.ai/documentation/destinations/index.md), such as Looker Studio, Google Sheets or BigQuery.
- [Connect Windsor.ai to Claude or ChatGPT](https://windsor.ai/documentation/mcp/index.md) and ask about your SendGrid data.
- [Fix a connection problem](https://windsor.ai/documentation/troubleshooting/index.md).
