X Write
Get write action status
Poll post tweet, tweet reply, and DM write actions after pending confirmation responses
GET
Get write action status
Use this endpoint after a write request returns
The Node.js, Python, and Go examples convert the status response into one
queue-state row. Store
For tweet replies,
202 x_write_unconfirmed. The original write may have been dispatched, so do not retry-send the same action until you inspect the status and verify the outcome. While status is pending_confirmation, keep charged as false, chargedCredits as "0", and poll again. Store the final tweetId or messageId only after the status response returns it.
write_action_id, status, result_id, target_id,
charged_credits, media, send_dispatched, confirmation_attempts, and
poll_endpoint; keep polling only while status is pending_confirmation.
Headers
Your API key. Session cookie authentication is also supported.
Path parameters
Write action ID returned by a pending write response.
Response
- 200 Success
- 401 Unauthenticated
- 404 Not Found
- 429 Rate Limited
Write action ID.
Write action type, such as
create_tweet.Current status:
success, failed, or pending_confirmation.Tweet ID when the action created or confirmed a tweet.
Message ID when the action sent a DM.
Target user, tweet, or resource ID when available.
Whether the original write action was charged.
Credits charged or reserved for the write action.
Create-tweet media billing details.
count is the attached media count, credits is the media credit total, kind is none, image, or video, and totalBytes is a stringified byte count.Whether the write was dispatched.
Always
false for this status response.Number of confirmation attempts.
Confirmation source when available.
ISO timestamp for write action creation.
ISO timestamp for dispatch when available.
ISO timestamp for the last confirmation check when available.
ISO timestamp for confirmation when available.
Status or error message when available.
Resolve the write queue
UseGET /x/write-actions/{id} to close the queue record created after 202 x_write_unconfirmed from tweet posts, tweet replies, DMs, or other write endpoints.
success
Store
writeActionId, action, charged, chargedCredits, media, and
the returned tweetId, messageId, or resultId. Mark the original job
as complete.pending_confirmation
Store
writeActionId, sendDispatched, confirmationAttempts,
confirmationCheckedAt, targetId, and message when present. Keep the
job pending, poll again with backoff, and do not retry-send the same body.failed
Store
writeActionId, action, sendDispatched, targetId, message,
charged, chargedCredits, and media. Mark the job failed, then fix the
account, target, content, or billing state before sending a new request.targetId is the parent tweet ID when available. For DMs, targetId is the recipient user ID when available. retryable is always false on this status response because replay decisions belong in your queue logic, not in automatic HTTP retries.
Related: Create Tweet returns
writeActionId when tweet confirmation is pending. Send DM
returns messageId after a confirmed direct message send. Direct Message Workflow
shows how to store DM messageId values. Error handling
explains x_write_unconfirmed.Last modified on June 15, 2026
Get write action status