🎉 Cyber Week: 30% off your first payment — ends Sunday, Dec 7Claim 30% off
Docs
/v1/accounts · Accounts

Accounts API

Returns social accounts connected to the API key owner. Use id as account_id when creating posts or schedules. Tokens are never included.

List accounts

GET/api/v1/accounts

Query

FieldTypeRequiredDescription
platformstringNox, linkedin, bluesky or threads.
posting_enabledbooleanNoFilter paused or active accounts.

Response

{ "accounts": [ ...Account ] }

Account object

FieldTypeRequiredDescription
idstring—Platform user id. Pass as account_id on posts.
handlestring—Username / handle.
platformstring—x, linkedin, bluesky, or threads.
timezonestring—IANA timezone used for the daily post limit.
posting_enabledboolean—false means scheduled posts for this account are paused.
account_promptstring | null—Writing instructions for generated posts.
reply_promptstring | null—Instructions for auto-replies.
error_refreshing_tokensboolean—true means the user should reconnect the account.

Get an account

GET/api/v1/accounts/:id
curl
curl "https://xbeast.io/api/v1/accounts/YOUR_ACCOUNT_ID" \
  -H "Authorization: Bearer xb_live_YOUR_KEY"

Update account instructions

PATCH/api/v1/accounts/:id

Body (all optional)

FieldTypeRequiredDescription
account_promptstring | nullNoInstructions for generated posts.
reply_promptstring | nullNoInstructions for auto-replies.
timezonestringNoValid IANA timezone, e.g. Europe/London.
posting_enabledbooleanNoPause or resume posting for this account.
curl -X PATCH "https://xbeast.io/api/v1/accounts/YOUR_ACCOUNT_ID" \
  -H "Authorization: Bearer xb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_prompt": "Concise, technical, no hashtags.",
    "reply_prompt": "Warm, ask one follow-up question.",
    "timezone": "America/New_York"
  }'

Delete an account

DELETE/api/v1/accounts/:id
Removes the connection and its schedules and posts. Generated images are left untouched. Destructive and cannot be undone.
Next: create a post or schedule with this account_id.