XreplyAIDevelopers
API ReferencePreferences & Styles

Update a platform style profile

Requires scope: `platform_styles:write`. Merges the supplied overrides for one platform.

PATCH
/platform_styles/{platform}
AuthorizationBearer <token>

A personal API key created in the dashboard (Starter, Pro, and Team plans).

In: header

Path Parameters

platform*string

Value in

  • "twitter"
  • "linkedin"
  • "youtube"
  • "instagram"
  • "threads"
  • "pinterest"
  • "tiktok"
  • "bluesky"
  • "mastodon"
  • "facebook"
  • "google_business"
  • "discord"
  • "telegram"
  • "tumblr"
  • "slack"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/platform_styles/twitter" \  -H "Content-Type: application/json" \  -d '{    "platform_style": {      "tone": "punchy",      "target_length": 180,      "custom_instructions": "Never use hashtags."    }  }'
{  "platform_style": {    "tone": "string",    "structure": "string",    "target_length": 0,    "max_length": 0,    "hashtag_rules": "string",    "cta_rules": "string",    "banned_phrases": [      "string"    ],    "custom_instructions": "string",    "is_default": true  }}