跳轉到主要內容
PUT
Targeting X/Twitter? Starting March 31, 2026, all X operations require your own API credentials. After linking X via OAuth, include these 2 headers in your request:

X-Twitter-OAuth1-Api-Key — Your API Key (Consumer Key)
X-Twitter-OAuth1-Api-Secret — Your API Key Secret (Consumer Secret)

One-time setup per Ayrshare account. You create one X Developer App and reuse the same API Key and Secret across every sub-profile / end-user you link. You do not create a new app per customer.

Not linked yet? See the full setup guide to connect your X account.

Your keys are never logged or stored by Ayrshare.
重試發布 status 為 "error" 的失敗貼文。重試的貼文會被視為排程貼文,因此最終狀態可以透過 /history 端點或 scheduled action webhook 取得。 在重試進行中,status 會是 "pending"。你可以呼叫 GET post 端點來檢查重試的狀態。 貼文只能重試「一次」。建議僅在錯誤訊息指出可以重試時再使用此功能。
在重試失敗的社群貼文之前,請先確認該貼文是否其實已成功發布。 社群網路有時會回報錯誤,但實際上已成功處理並發布該貼文。

Header 參數

Body 參數

string
必填
最上層的 Ayrshare Post ID。原始貼文的狀態必須為 “error”。