🎉 Black Friday: 30% off your first payment — ends Monday, Nov 30Claim 30% off
Docs
/v1/auto-plugs · Auto Plugs

Auto Plugs API

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.

List auto plugs

GET/api/v1/auto-plugs

Query

FieldTypeRequiredDescription
limitnumberNoDefault 20, max 100.
offsetnumberNoPagination offset.

Create an auto plug

POST/api/v1/auto-plugs
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