canonical: https://jentic.com/apis/sendgrid.com/twilio-sendgrid-marketing-campaigns-lists-api

# Sendgrid Twilio SendGrid Marketing Campaigns Lists API

The Twilio SendGrid Marketing Campaigns Lists API allows you to manage your contacts lists programmatically. Lists are static collections of Marketing Campaigns contacts. You can use this API to interact with the list objects themselves. To add contacts to a list, you must use the [Contacts API](https://docs.sendgrid.com/api-reference/contacts/). You can also manage your lists using the Contacts m. The API exposes 7 endpoints secured with bearer authentication.

## For AI agents

Programmatically create list, get all lists. Covers 7 operations with bearer authentication.

## Scope

Does not handle payments, communications, or crm - use for marketing only.

## Capabilities

- Create List
- Get All Lists
- Update List
- Delete a list
- Remove Contacts from a List

## Use cases

### Marketing Operations

Use the Twilio SendGrid Marketing Campaigns Lists API to perform marketing operations programmatically. The API provides 7 endpoints covering core functionality including create list, get all lists, get a list by id.

Example prompt: Call POST /v3/marketing/lists to create list

### Automated Lists Management

Automate lists operations by combining multiple Twilio SendGrid Marketing Campaigns Lists API endpoints. Agents can get all lists and then get a list by id in a single workflow.

Example prompt: Call GET /v3/marketing/lists to get all lists, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Twilio SendGrid Marketing Campaigns Lists API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle bearer tokens manually.

Example prompt: Search Jentic for 'create list', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /v3/marketing/lists | Create List |
| GET | /v3/marketing/lists | Get All Lists |
| GET | /v3/marketing/lists/{id} | Get a List by ID |
| PATCH | /v3/marketing/lists/{id} | Update List |
| DELETE | /v3/marketing/lists/{id} | Delete a list |
| DELETE | /v3/marketing/lists/{id}/contacts | Remove Contacts from a List |
| GET | /v3/marketing/lists/{id}/contacts/count | Get List Contact Count |

## Key resources

- **Lists** — Twilio SendGrid Marketing Campaigns Lists API

## Why Jentic

- **Setup:** Wiring the Twilio SendGrid Marketing Campaigns Lists API by hand means learning its bearer API key auth, pointing at the api.sendgrid.com host, and handling paging and retries yourself. Through Jentic you install once, import the Lists API from the API Directory, store the API key once, and your agent calls it.
- **Permission scoping:** This API puts the list id in the URL path (/v3/marketing/lists/{id}), so a rule can pin your agent to one list: it can read that list and count its contacts and nothing else. You choose the operations it may call, so deleting a list or removing its contacts is not included unless you add it.
- **Credential handling:** Your Twilio SendGrid API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a list' or 'count contacts in a list', and Jentic returns the matching Twilio SendGrid Lists API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Mailchimp** — Alternative marketing API
- **Hubspot** — Alternative marketing API

## FAQ

### What authentication does the Twilio SendGrid Marketing Campaigns Lists API use?

The Twilio SendGrid Marketing Campaigns Lists API uses a Bearer token in the Authorization header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I create list with the Twilio SendGrid Marketing Campaigns Lists API?

Yes. Use the POST /v3/marketing/lists endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Twilio SendGrid Marketing Campaigns Lists API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I create list through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'create list'. Jentic returns the matching Twilio SendGrid Marketing Campaigns Lists API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Twilio SendGrid Marketing Campaigns Lists API have?

The Twilio SendGrid Marketing Campaigns Lists API exposes 7 endpoints covering lists operations.

### Can I limit what my agent is allowed to do with the SendGrid Marketing Campaigns Lists API?

Yes. Jentic One is self-hosted, so your own rules decide which of this API's operations the agent may call and which credentials it may use. Because the list id sits in the URL path (/v3/marketing/lists/{id}), you can pin the agent to a single list and allow only reads such as getting a list by id and counting its contacts. Write and destructive operations like updating a list, deleting a list, or removing contacts are excluded unless you explicitly grant them.
