Skip to main content
POST
Analyze an X post with AI
Needs posts:read. See Permissions.
Reads a public X post and up to 300 of its replies, and answers your question about them with AI. The post doesn’t need to be in PostSyncer. For a post with more replies, the AI is told how many it has and that 300 were read. The answer also has the post’s numbers (tweet.metrics) and the credits it cost. It costs 1 AI credit. With workspace_id the workspace owner pays; without it, the key’s user does. The balance is checked before the post is read, and you aren’t charged when the AI can’t answer.

Free plan

AI post analysis is on paid plans. When the payer is on Free, it is refused with 403, error: plan_limit_reached, limit: ai, before the post is read.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

The X post's link, like https://x.com/haldencoffee/status/1900812345678901234.

Maximum string length: 2048
question
string
required

What to find out from the post and its replies.

Required string length: 3 - 2000
workspace_id
integer

The workspace whose owner pays the credit; one the key can reach. Leave it out and the key's user pays.

Response

The answer, the post's numbers, and the credits.

answer
string
required
tweet
object
required
credits
object
required

What the answer cost and what the payer has left.