Composition

Creates or replaces a style profile from supplied posts.

put/api/v1/styles/{id}

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/styles/{id}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring required

Style profile ID or X username. Case and a leading @ are ignored.

Request body

labelstring

Optional display label of up to 50 characters. When sent, it must match the path ID, ignoring case and a leading @. When it is left out, the path ID names the style and must fit the same limit.

Example request

{
  "label": "Professional Voice",
  "tweets": [
    {
      "text": "Excited to share our latest research."
    }
  ]
}

Response

Style profile saved

xUsernamestring required
tweetCountinteger required
isOwnAccountboolean required
fetchedAtstring date-time required

Example response

{
  "xUsername": "elonmusk",
  "tweetCount": 50,
  "isOwnAccount": true,
  "fetchedAt": "2025-01-15T12:00:00Z",
  "tweets": [
    {
      "id": "1234567890",
      "text": "Just launched our new feature!"
    }
  ]
}

Changes

    • warning

      added the new topup_in_progress enum value to the ///// response property for the response status

    • warning

      added the new topup_in_progress enum value to the ////// response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status