Docs
Docs
/v1/posts · Posts
Posts API
Create, list, update, and cancel posts you send through the API. This is the endpoint for bring-your-own tweet text and media, with optional auto-reply and auto-retweet — the same engines used in the XBeast app.
Post object
{
"id": "10932",
"account_id": "123456789",
"status": "scheduled",
"scheduled_at": "2026-08-25T16:00:00.000Z",
"tweets": [
{ "text": "Hello from my CMS.", "media_url": "https://example.com/image.jpg" }
],
"auto_reply": {
"enabled": true,
"max": 10,
"like": false,
"verified_only": false
},
"auto_retweet": { "enabled": true, "after_hours": 8 },
"tweet_id": null,
"url": null,
"source": "api",
"created_at": "2026-08-24T18:01:00.000Z"
}Create a post
POST
/api/v1/postsOmit
scheduled_at (or send null) to publish immediately. A future ISO 8601 datetime schedules the post. Past times are rejected.Body
Schedule
curl -X POST "https://xbeast.io/api/v1/posts" \
-H "Authorization: Bearer xb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"account_id": "YOUR_ACCOUNT_ID",
"tweets": [{ "text": "Shipping at noon.", "media_url": "https://example.com/img.jpg" }],
"scheduled_at": "2026-08-25T16:00:00.000Z",
"auto_reply": { "enabled": true, "max": 10, "like": false, "verified_only": false },
"auto_retweet": { "enabled": true, "after_hours": 8 }
}'Post now
curl -X POST "https://xbeast.io/api/v1/posts" \
-H "Authorization: Bearer xb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"account_id": "YOUR_ACCOUNT_ID",
"tweets": [{ "text": "Going out now." }]
}'Immediate posts return
status: posted, tweet_id, and url when the network accepts them. The account must belong to you and have posting enabled. Publishing to X costs 1 credit per post (a thread counts as one). Posts with a URL cost 2 extra credits. Daily cap: 7 scheduled + posted tweets per account per day.List posts
GET
/api/v1/postsLists posts created via the API for the key owner.
Query
curl "https://xbeast.io/api/v1/posts?status=scheduled&limit=20" \ -H "Authorization: Bearer xb_live_YOUR_KEY"
Response:
{ "posts": [ ...Post ] }Get a post
GET
/api/v1/posts/:idcurl "https://xbeast.io/api/v1/posts/10932" \ -H "Authorization: Bearer xb_live_YOUR_KEY"
Update a post
PATCH
/api/v1/posts/:idOnly unsent posts. You cannot update a posted or cancelled post. Changing
scheduled_at or account_id re-checks the daily cap.Body (all optional)
curl -X PATCH "https://xbeast.io/api/v1/posts/10932" \
-H "Authorization: Bearer xb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "scheduled_at": "2026-08-25T18:00:00.000Z" }'Cancel or delete
DELETE
/api/v1/posts/:idScheduled posts are cancelled (they stay in history as cancelled). Drafts are deleted. Posted posts cannot be deleted via the API.
curl -X DELETE "https://xbeast.io/api/v1/posts/10932" \ -H "Authorization: Bearer xb_live_YOUR_KEY"
{ "message": "Post cancelled" }