# Auto Plugs API

> Manage reusable plug tweets that are appended when a post crosses a like threshold.

Source: https://xbeast.io/docs/api-auto-plugs

An auto plug is a reusable follow-up tweet. When a post crosses the configured minimum likes, XBeast appends the plug as a reply. Attach a plug to a post or schedule by passing `{ "id": "…", "min_likes": 50 }` as `auto_plug`.

> **Paid plans only**
>
> Auto plugs are part of the paid automation features, the same as in the app.

### List auto plugs

**`GET /api/v1/auto-plugs`**

#### Query

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| limit | number | No | Default 20, max 100. |
| offset | number | No | Pagination offset. |

### Create an auto plug

**`POST /api/v1/auto-plugs`**

```bash
curl -X POST "https://xbeast.io/api/v1/auto-plugs" \
  -H "Authorization: Bearer xb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Newsletter plug",
    "tweet": "I write a weekly newsletter about building in public: https://example.com"
  }'
```

Response: `{ data: { id, name, tweet, created_at } }`.

### Update an auto plug

**`PATCH /api/v1/auto-plugs/:id`**

### Delete an auto plug

**`DELETE /api/v1/auto-plugs/:id`**

Deleting a plug also clears its use on schedules and posts.

## Related

- [Use auto_plug when creating a post](https://xbeast.io/docs/api-posts.md)
- [Use auto_plug in a weekly slot](https://xbeast.io/docs/api-schedules.md)
- [Manage auto plugs from an AI agent over MCP](https://xbeast.io/docs/mcp.md)
