🎉 Cyber Week: 30% off your first payment — ends Sunday, Dec 7Claim 30% off
Docs
Authentication

API Authentication

Every Public API request must include an API key in the Authorization header. Keys start with xb_live_ and are hashed at rest. The full key is shown only when you create it.

Create a key

  1. Open https://xbeast.io/developers while logged in.
  2. Use a paid XBeast plan (free accounts cannot create keys).
  3. Choose Full access or Read-only, name the key (for example Production) and click Create key.
  4. Copy the secret. You will not see it again.
You can have up to 5 active keys. Revoke unused keys from the same page.

Request header

Authorization: Bearer xb_live_YOUR_KEY
Example
curl "https://xbeast.io/api/v1/credits" \
  -H "Authorization: Bearer xb_live_YOUR_KEY"
Clients that cannot set an Authorization header may send X-API-Key instead. Keys are never accepted in the query string.

The same keys work for MCP

The hosted XBeast MCP server authenticates with the same xb_live_ keys. Paste the key into your MCP client's headers; no separate MCP token exists. Paid plan and access-mode rules apply identically to both surfaces.

Access modes

ModeReadWrite & generateTypical use
fullYesYesAgents that create drafts, edit presets, schedule or publish posts, and spend credits.
read_onlyYesNo — 403 read_only_keyAnalytics dashboards and assistants that should never change your workspace.
Only a full-access key can create or revoke keys, so a read-only key cannot escalate its own permissions.

Rules

FieldTypeRequiredDescription
SchemeBearerYesOnly Bearer tokens are accepted. Cookie session auth is not used on /api/v1.
PrefixstringYesKeys must start with xb_live_.
PlanpaidYesFree plans receive 403 forbidden even with a valid-looking header.

Failed auth

Missing, malformed, revoked, or unknown keys return 401 with error.code: unauthorized. See Errors.