v11

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0112893437.0 KB
Composition

Save style profile with custom tweets

put/styles/{id}

Path parameters

idstring required

Style profile ID or X username

Request body

labelstring required

Display label for the style

Example request

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

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!"
    }
  ]
}