Skip to main content
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.
Retry to publish a post that failed with a status of "error". A retried post will be treated as a scheduled post, thus the final status can be obtained via the /history endpoint or the scheduled action webhook. While the post is being retried, the status will be "pending". You may check on the status of the retry by calling the GET post endpoint. The post can be retried only once. Recommend to only use if the error message indicates a retry is possible.
When retrying a failed social media post, first verify that the post hasn’t already been published. Social networks may sometimes report errors even when they’ve successfully processed and published the post.

Header Parameters

Body Parameters

string
required
The top-level Ayrshare Post ID. The original post must have a status of “error”.