跳转到主要内容
GET
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.
获取通过 Ayrshare 发送的特定帖子的历史记录。返回状态、帖子参数以及其他详细信息。将 :id 替换为 Ayrshare Post ID。
调用 /history by id 端点可获取相同的数据。

帖子状态

以下是帖子可能返回的状态。
参见 /history 端点以检索所有帖子,包括 未通过 Ayrshare 发送的帖子。

Header 参数

Path 参数

string
必填
来自 /post 的 Ayrshare Post ID