🎉 Black Friday: 30% off your first payment — ends Monday, Nov 30Claim 30% off
Docs
/v1/styles · Styles

Styles API

Styles teach XBeast how you write. A style holds example tweets and can be attached to presets and text generation. Community styles are read-only; duplicate the examples into your own style to customize them.

Style object

{
  "id": "f3a9d1…",
  "title": "Builder voice",
  "is_community": false,
  "examples": [
    "Shipped a tiny feature today. It will never trend, and it made a customer's week.",
    "Most growth advice is just consistency with better lighting."
  ],
  "tweet_bank_ids": [],
  "created_at": "2026-11-28T10:00:00.000Z"
}
FieldTypeRequiredDescription
idstring—Style id.
titlestring—Display name.
is_communityboolean—Community styles cannot be edited.
examplesstring[]—Example tweet texts.
tweet_bank_idsstring[]—Tweet bank entries used as examples.

List styles

GET/api/v1/styles

Query

FieldTypeRequiredDescription
include_communitybooleanNoInclude shared community styles.
searchstringNoFilter by title.
limitnumberNoDefault 20, max 100.
offsetnumberNoPagination offset.

Create a style

POST/api/v1/styles
curl -X POST "https://xbeast.io/api/v1/styles" \
  -H "Authorization: Bearer xb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "title": "Builder voice" }'

Get a style

GET/api/v1/styles/:id

Update a style

PATCH/api/v1/styles/:id
Send exactly one change per request:

Body

FieldTypeRequiredDescription
titlestringNoRename the style.
add_exampleobjectNo{ text } to add one example.
add_from_urlstringNoX post URL to import as an example.
generate_from_handlestringNoHandle whose recent tweets become examples.
replace_custom_tweetsarrayNoReplace all manual examples.
replace_tweet_bank_idsstring[]NoReplace tweet-bank examples.
remove_example_idstringNoRemove one example by id.

Add an example

POST/api/v1/styles/:id/examples
Body: exactly one of text, tweet_url or handle.

Remove an example

DELETE/api/v1/styles/:id/examples/:exampleId

Delete a style

DELETE/api/v1/styles/:id

Related