Article Endpoints

[Step 2/5] Upload and set article cover image (optional)

Step 2 of 5 (optional) — Upload a cover image and attach it to the draft.

  • article_id: obtained from Step 1
  • cover_image: an https:// URL or a local file path

This step can be skipped if you don't need a cover image.

put/x/articles/{article_id}/cover

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/x/articles/{article_id}/cover
  • Auth: HTTP bearer

Path parameters

article_idstring required

Request body

cookiestring required

The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See Authentication Security and How to get Cookie.

cover_imagestring required

Cover image: https URL or local file path

Response

Successful Response

codeinteger required

200 = success, 429 = rate limit, 500 = server error

msgstring required

Human-readable result message

Changes

No recorded changes to this operation across all 1 revision of this API.