Compose
Compose tweet
Compose, refine, and score tweets using X algorithm data. 3-step workflow, free
POST
Compose tweet
Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
Free - does not consume credits
Headers
Your API key. Session cookie authentication is also supported.
Must be
application/json.Body
Workflow step. One of
compose, refine, or score.Tweet topic. Used in
compose and refine steps.Optimization goal:
engagement, followers, authority, or conversation.Cached style username for voice matching. Used in
compose step.Desired tone for the tweet. Used in
refine step.Extra context or URLs. Used in
refine step.Desired call to action. Used in
refine step.Media type:
photo, video, or none. Used in refine step.Tweet text to evaluate. Used in
score step.Whether a link is attached. Used in
score step.Whether media is attached. Used in
score step.Workflow
The compose API follows a 3-step workflow:compose: Returns algorithm weights, content rules, penalties, and follow-up questionsrefine: Returns composition guidance, example patterns, media strategy, and CTA advicescore: Evaluates a draft against algorithm checks with pass/fail results
Response
- 200 OK (compose)
- 200 OK (refine)
- 200 OK (score)
- 400 Invalid Input
- 401 Unauthenticated
- 429 Rate Limited
Algorithm content rules. Each item has a
rule string.Algorithm scorer weights. Each item has
context, signal, and weight fields.Follow-up questions to refine the composition.
Engagement multipliers. Each item has
action and multiplier fields.Engagement velocity description.
X intent URL for posting the tweet.
Instructions for the next API call in the workflow.
Saved style profiles. Present when you omit
styleUsername and cached styles exist.Cached style username.
Number of cached tweets available for that style.
Algorithm source attribution.
Style fallback note. Present when a requested style is not cached and the request can continue without refreshing it.
Cached example tweets used for voice matching. Present when
styleUsername matches a cached style.Top algorithm penalties to avoid.
Next steps: Save Draft to save a composed tweet for later, or Analyze Style to match another account’s voice.
Last modified on May 9, 2026
Compose tweet