GetXAPI
Articles

Unpublish Article

Move a published Twitter/X article back to draft and remove the wrapper tweet from the timeline. $0.005 per call.

POST/twitter/article/unpublish

This endpoint costs $0.005 per API call.

Moves a published article back to draft and removes the wrapper tweet from the timeline. The article entity is preserved as a draft.

Request Body

FieldTypeRequiredDescription
auth_tokenstringYesUser's auth token
ct0stringNoOptional current CSRF token cookie. When provided with twid, skips server-side credential resolution.
twidstringNoOptional current user ID cookie, for example u=1234567890. Must be provided with ct0.
article_idstringYesPublished article id
proxystringNoYour proxy URL

Notes

  • If you already have current ct0 and twid, send both to skip the extra server-side credential bootstrap from auth_token. If either one is omitted, the server resolves them from auth_token as before. Stale or invalid supplied values are not validated upfront and may fail on the actual Twitter action instead of returning an early 401.

Response (200)

{
  "status": "success",
  "msg": "Article unpublished",
  "data": { "article_id": "2055606612363202560" }
}

Examples

curl -X POST "https://api.getxapi.com/twitter/article/unpublish" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "auth_token": "your_auth_token",
    "article_id": "2055606612363202560"
  }'

On this page