x

Follow / unfollow

Follow or unfollow an X account from a connected account. Needs accountId, a target (handle or user id), action follow or unfollow, and an idempotencyKey. Costs 5 credits on success. Tip: following a lead before a DM makes the DM land in their main inbox more often, but pace it; accounts have a daily action limit. Costs 5 credits.

post/v1/x/actions/follow

Request

  • Base URL: https://chatterapi.com
  • URL: https://chatterapi.com/v1/x/actions/follow
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Unique key per write so a retry never acts twice.

Request body

accountIdstring uuid required

Id of an X account you connected in the dashboard.

action'follow' | 'unfollow'

Follow or unfollow.

targetHandlestring

Handle to act on. Pass this or targetId.

targetIdstring

User id to act on. Pass this or targetHandle.

Response

Success

dataXWriteResult required(unresolved $ref)
requestIdstring required
cachedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.