๐ŸŽ‰ Black Friday: 30% off your first payment โ€” ends Monday, Nov 30Claim 30% off
Docs
/v1/workspace ยท Workspace & Analytics

Workspace & Analytics API

Workspace endpoints report plan, credits, limits and volume. Analytics endpoints read account growth, sent-post performance, auto-reply activity and the public creator leaderboard. All are read-only and safe for read-only keys.

Workspace summary

GET/api/v1/workspace
{
  "plan": { "id": "xbeast-pro", "name": "Pro", "is_free": false, "status": "active" },
  "credits": {
    "used": 120,
    "available": 880,
    "max": 1000,
    "period_start": "2026-11-01T00:00:00.000Z",
    "reset_at": "2026-12-01T00:00:00.000Z"
  },
  "limits": {
    "max_accounts": 3,
    "max_presets": 100,
    "max_schedule_posts": 100,
    "max_queue_posts": 300,
    "max_auto_reply": 50
  },
  "accounts": {
    "total": 2,
    "posting_enabled": 2,
    "needs_reconnect": 0,
    "connected_platforms": ["x"]
  },
  "posts": { "upcoming": 12, "drafts": 4, "errors": 0, "sent": 240 },
  "attention": { "post_errors": 0, "account_errors": 0, "unread": 0 }
}
Use credits.available before generation and posts.upcoming to see how much content is already queued.

Credits

GET/api/v1/credits
A smaller legacy response with credits used, available, limit and reset date. Prefer /workspace for new integrations.

Analytics

Account growth

GET/api/v1/accounts/:id/analytics

Query

FieldTypeRequiredDescription
fromstringNoStart date (ISO 8601). Defaults to 30 days ago.
tostringNoEnd date (ISO 8601). Defaults to today.
granularitystringNoday, week or month. Default day.
curl "https://xbeast.io/api/v1/accounts/YOUR_ACCOUNT_ID/analytics?granularity=week" \
  -H "Authorization: Bearer xb_live_YOUR_KEY"
Returns points (followers, following, tweets, likes, listed) plus a summary with first/latest values and changes.

Sent-post performance

GET/api/v1/accounts/:id/posts

Query

FieldTypeRequiredDescription
statusstringNoposted (default), draft, scheduled, error, history.
fromstringNoStart date (ISO 8601).
tostringNoEnd date (ISO 8601).
limitnumberNoDefault 20, max 100.
offsetnumberNoPagination offset.

Auto-reply activity

GET/api/v1/accounts/:id/auto-replies

Query

FieldTypeRequiredDescription
post_idstringNoLimit to one post.
limitnumberNoDefault 20, max 100.

Creator leaderboard

GET/api/v1/leaderboard

Query

FieldTypeRequiredDescription
searchstringNoHandle or name search.
sort_bystringNoinfluence_score_1d (default), engagement_score_1d, virality_score_1d, followers_count, percent_growth_1d and more.
sort_orderstringNoasc or desc. Default desc.
pagenumberNoPage number. Default 1.
page_sizenumberNo1โ€“100. Default 25.

Related