> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/data-sources/sendgrid.md).

# SendGrid

## Configuration

### Prerequisites

First, you need to obtain an API key to be able to connect to SendGrid. \
In your account, go to **Settings > API Keys > Create API Key** and select the required permission set for the API key. Once created, copy the key for later use.

### Connecting the data source

1. On the **Data sources** page, click **Connect**, and select *SendGrid* in the Data sources list.
2. Paste the **API Key** you created previously in the corresponding field.
3. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FBEXJTgH1gyF90pWijLhx%2FCleanShot%202025-04-28%20at%2013.01.39%402x-min.png?alt=media&amp;token=c073e428-3e09-4c3a-8e36-ff48921f3afa" alt=""><figcaption></figcaption></figure>

## Usage

Once you have connected SendGrid to UI Bakery, you can start interacting with your data. For this purpose, you can use the [Open API Request](/reference/working-with-actions/open-api-request.md) action step:

1. Create a new action, select your SendGrid data source and the *Open API Request* action.\
   All available SendGrid endpoints will be already defined.
2. Next, select the required endpoint from the **Operation** dropdown.&#x20;
3. Set any parameters and/or body if necessary.
4. Click **Execute action**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uibakery.io/reference/data-sources/sendgrid.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
