---
title: "GET /api/v1/x/write-actions/{id}"
method: GET
path: "/api/v1/x/write-actions/{id}"
tags: ["X Write"]
---

# GET /api/v1/x/write-actions/{id}

`GET /api/v1/x/write-actions/{id}`

## Request

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

Returns the current state of an asynchronous write action.

## Path parameters

- `id` string, required

## Response `200`

Write reached a terminal state.

- XWriteAction: Durable write record. Poll statusUrl until terminal is true. Reusing its Idempotency-Key returns this record. Create another action only when safeToRetry is true.
  - `object` 'x_write_action', required
  - `id` string, required
  - `writeActionId` string, required
  - `action` 'create_tweet' | 'delete_tweet' | 'like' | 'unlike' | 'retweet' | 'unretweet' | 'follow' | 'unfollow' | 'remove_follower' | 'send_dm' | 'delete_dm' | 'upload_media' | 'update_profile' | 'update_avatar' | 'update_banner' | 'create_community' | 'delete_community' | 'join_community' | 'leave_community', required
  - `status` 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired', required
  - `terminal` boolean, required
  - `retryable` boolean, required: True only when a new attempt is likely to succeed.
  - `safeToRetry` boolean, required: True only when X did not get the write and a new idempotency key may be used.
  - `statusUrl` string, required
  - `pollAfterMs` integer, nullable, required
  - `charged` boolean, required
  - `chargedCredits` string, required
  - `billing` XWriteActionBilling, required: plannedCredits is the approved maximum. chargedCredits comes from the settled credit ledger. Xquik charges nothing for pending or failed writes.
    - `status` 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded', required
    - `charged` boolean, required
    - `plannedCredits` string, required
    - `chargedCredits` string, required
  - `request` XWriteActionRequest, required: Stable fingerprint and sanitized payload for replay checks.
    - `hash` string, nullable, required: Stable hash of account, action, target, and payload.
    - `payload` object, nullable, required: Exact sanitized payload dispatched for this action.
  - `account` XWriteActionAccount, nullable, required: Connected account selected for the write.
    - `id` string, required
    - `username` string, required
  - `target` XWriteActionTarget, nullable, required: Existing X resource targeted by the write, when applicable.
    - `type` 'tweet' | 'user' | 'community', required
    - `id` string, required
  - `targetId` string, nullable, required
  - `result` XWriteActionResult, nullable, required: Confirmed result produced by the write, when available.
    - `type` 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change'
    - `id` string
    - `state` string
  - `nextAction` XWriteActionNextAction, nullable, required: Exact follow-up an API client or agent should perform.
    - `type` 'poll' | 'retry' | 'verify_result' | 'fix_request', required
    - `url` string
    - `afterMs` integer: Milliseconds to wait before you poll or retry.
    - `requiresNewIdempotencyKey` boolean
  - `requestHash` string
  - `requestId` string
  - `idempotent` boolean: True when this answers a retry of an earlier request with the same Idempotency-Key.
  - `error` string
  - `message` string
  - `sendDispatched` boolean, required
  - `sendDispatchedAt` string, date-time: Dispatch timestamp when the write reached execution.
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `completedAt` string, date-time
  - `expiresAt` string, date-time: Deadline for resolving a non-terminal write. This is not the Idempotency-Key retention deadline.
  - `confirmedAt` string, date-time
  - `confirmationCheckedAt` string, date-time
  - `confirmationAttempts` integer
  - `tweetId` string: Compatibility field for a confirmed tweet result ID.
  - `messageId` string: Compatibility field for a confirmed direct message ID.
  - `mediaId` string: Compatibility field for a confirmed media upload ID.
  - `mediaUrl` string, uri: Public media URL when the upload creates one.
  - `communityId` string: Compatibility field for a confirmed community ID.
  - `communityName` string: Confirmed community name when available.
  - `resultId` string: Compatibility result ID for other write actions.
  - `media` object: Media count, kind, size, and billing details when used.
  - `details` object: Structured recovery context for a failed write.
  - `success` boolean, required

## Other responses

- `202`: Write accepted or dispatched. Poll Location after Retry-After. Send no other write until it ends. X's 408, 500, 502, 503 or 504 after the send gives x_write_ambiguous.
- `400`: Invalid input. A value past its maxLength gets this answer, & the message names the field & its limit.
- `401`: Unauthenticated
- `404`: Not found
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `default`: Unexpected error.

## Changes

- **2026-10-20** `45942c75fdc2`: 12 warning
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …8 more

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/x/write-actions/:id/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xquik-dev/apis/xquik-api/revisions/45942c75fdc2?raw)
