---
title: "Analyze writing style from recent tweets"
method: POST
path: "/styles"
tags: ["Composition"]
---

# Analyze writing style from recent tweets

`POST /styles`

## Request body

- object
  - `username` string, required — X username to analyze

## Response `200`

Fresh cached style profile returned

- StyleProfile — Full style profile with sampled tweets used for tone analysis.
  - `xUsername` string, required
  - `tweetCount` integer, required
  - `isOwnAccount` boolean, required
  - `fetchedAt` string, date-time, required
  - `tweets` object[], required
    - `id` string, required
    - `text` string, required
    - `createdAt` string
    - `authorUsername` string

## Other responses

- `201` — Style profile created or refreshed
- `400` — Invalid input
- `401` — Unauthenticated
- `402` — Payment required. MPP reads return a problem document and `WWW-Authenticate`. Authenticated reads return balances and checkout actions. Guest keys receive only the guest top-up action. Other endpoints may use legacy errors. A failed request never creates checkout. Require user confirmation before creating one.
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.

## Changes

- **2026-08-12** `d8082b3892a2` — 48 warning
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …44 more
- **2026-08-11** `f6affe6e547e` — 4 info
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/subscription/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/GuestPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `payment_options/guest_wallet/create_checkout/provider` deprecated (media type: application/problem+json)
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/styles/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/d8082b3892a2/schema)
