# Lists

> Group leads to add them to campaigns together. 4 REST endpoints with parameters, permissions and curl examples. Each endpoint is also an MCP tool for your AI.

Canonical: https://ballast.to/docs/api/lists

[API reference](https://ballast.to/docs/api)

Group leads to add them to campaigns together. 4 endpoints, each also a tool for your AI through [MCP](https://ballast.to/docs/mcp). Authentication and errors are on the [overview](https://ballast.to/docs/api#authentication).

## Lead lists with counts

GET

/api/v1/lists

MCP tool

list\_lead\_lists

Read-only

Returns

- **`lists` required object\[\]**
- **`totalLeads` required number**
- **`unlisted` required number**

cURL

```
curl https://ballast.to/api/v1/lists \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Create a list

POST

/api/v1/lists

MCP tool

create\_lead\_list

Parameters

- **`name` required string**

Returns

- **`id` required string**
- **`name` required string**

cURL

```
curl -X POST https://ballast.to/api/v1/lists \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>"}'
```

## Rename a list

PATCH

/api/v1/lists/{id}

MCP tool

rename\_lead\_list

Parameters

- **`id` required path · string**
- **`name` required string**

Returns

- **`id` required string**
- **`name` required string**

cURL

```
curl -X PATCH https://ballast.to/api/v1/lists/<id> \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>"}'
```

## Delete a list

DELETE

/api/v1/lists/{id}

The list goes; with deleteLeads its leads are deleted too, otherwise they stay in the workspace.

MCP tool

delete\_lead\_list

MCP asks to confirm

Parameters

- **`id` required path · string**
- **`deleteLeads` query · boolean**

Returns

- **`ok` required true**
- **`deletedLeads` required number**

cURL

```
curl -X DELETE https://ballast.to/api/v1/lists/<id> \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```
