capabilities.work

Find a Post, Repost It, Then Undo the Repost

A 3-step recipe with X (Twitter). We can help you get access.

Recipe · 3 steps

Find a Post, Repost It, Then Undo the Repost

Search, repost the top result, then undo the repost.

  1. Search recent posts and capture the id of the first match.
  2. Repost the first matching post from the authenticated account.
  3. Undo the repost to restore the original state.
What you'll need to have ready
  • authUserId: The numeric id of the authenticated user performing the repost.
  • query: The search query used to find a post to repost.
  • authorization: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
For your developer

Arazzo workflow twitter:repost-then-undo, 3 operations: searchPostsRecent → repostPost → unrepostPost. Specs on APIs.io.