Skip to main content
PUT
/
styles
/
{id}
Save custom style
curl --request PUT \
  --url https://api.example.com/styles/{id} \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "label": "<string>",
  "tweets": [
    {
      "text": "<string>"
    }
  ]
}
'
Free — does not consume credits
This endpoint does not consume usage credits. No subscription required.
curl -X PUT https://xquik.com/api/v1/styles/casual \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "casual",
    "tweets": [
      { "text": "just shipped a new feature, feels good" },
      { "text": "hot take: tabs > spaces and I will die on this hill" },
      { "text": "debugging at 2am hits different when the fix is a missing comma" }
    ]
  }' | jq

Path parameters

id
string
required
Style label used as the identifier. 1-50 characters. Must start with a letter or number. Allows letters, numbers, spaces, dots, hyphens, and apostrophes. This becomes the key for retrieving the style later.

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Body

label
string
required
Style label (e.g. “Professional”, “Casual”, “My Style”). Used to identify the style profile.
tweets
object[]
required
Array of tweet objects (1-100) that define the writing style. Each object must have a text field.

Response

xUsername
string
Style label (normalized to lowercase).
tweetCount
number
Number of tweets saved in the style profile.
isOwnAccount
boolean
Always false for custom styles.
fetchedAt
string
ISO 8601 timestamp when the style was saved.
tweets
object[]
Array of saved tweets.
{
  "xUsername": "casual",
  "tweetCount": 3,
  "isOwnAccount": false,
  "fetchedAt": "2026-02-24T10:30:00.000Z",
  "tweets": [
    {
      "id": "0",
      "text": "just shipped a new feature, feels good",
      "authorUsername": "casual",
      "createdAt": "2026-02-24T10:30:00.000Z"
    },
    {
      "id": "1",
      "text": "hot take: tabs > spaces and I will die on this hill",
      "authorUsername": "casual",
      "createdAt": "2026-02-24T10:30:00.000Z"
    },
    {
      "id": "2",
      "text": "debugging at 2am hits different when the fix is a missing comma",
      "authorUsername": "casual",
      "createdAt": "2026-02-24T10:30:00.000Z"
    }
  ]
}
If a style with this label already exists, it will be replaced with the new data.
Next steps: List Styles to see all saved styles, Get Style to retrieve a specific style, or Compare Styles to compare two styles side by side.