---
title: "Follow, like or repost as a connected account"
method: POST
path: "/x/actions"
tags: ["Leads"]
---

# Follow, like or repost as a connected account

`POST /x/actions`

## Request

- Base URL: `https://app.pumpgtm.com/api/v1`
- URL: `https://app.pumpgtm.com/api/v1/x/actions`
- Auth: HTTP bearer

One write as a connected X account: follow a profile URL or @handle, or like/repost a post URL. Never sends a DM or writes a post. Each successful write is one activity row and one Energy charge on metered workspaces (402 when exhausted). Requires the X channel; 409 x_not_connected when the account is not connected.

## Headers

- `X-PumpGTM-Client` string, uuid
- `X-PumpGTM-User` string

## Request body

- object
  - `action` 'follow' | 'like' | 'repost', required
  - `target` string, required: Profile URL or @handle for follow; post URL for like and repost.
  - `as` string: Connected account to act as; defaults to the workspace's account.

## Response `200`

Successful response. Read outcome fields; success does not imply delivery.

- object
  - `action` string, required
  - `as` string, required
  - `username` string
  - `postId` string
  - `done` unknown, required

## Other responses

- `400`: Invalid input; for partner keys also user_header_required when the account requires X-PumpGTM-User
- `401`: Missing, invalid or revoked key
- `402`: energy_exhausted: this metered workspace has no Energy left for the action; nothing changed. Follow topUpUrl.
- `403`: Workspace mismatch, channel or feature disabled; for partner keys also enterprise_required and user_disabled
- `404`: Resource unavailable in this workspace
- `409`: Revision, identity or state conflict: { error, message } and nothing changed
- `429`: Rate limit; respect Retry-After when provided
- `500`: internal_error: an unexpected failure on our side; retry, then contact PumpGTM
- `503`: Dependency unavailable; identity may be unknown

## Changes

- **2026-10-12** `06d2e4d0e84b`: 9 info
  - the response property `error` became required for the status `400`
  - the response property `error` became required for the status `401`
  - the response property `error` became required for the status `402`
  - the response property `error` became required for the status `403`
  - …5 more
- **2026-10-12** `08c80059d483`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pumpgtm/apis/pumpgtm-api/changes/x/actions/post.md)

---

[API](https://skmtc.dev/pumpgtm/apis/pumpgtm-api.md) - [All operations](https://skmtc.dev/pumpgtm/apis/pumpgtm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pumpgtm/apis/pumpgtm-api/revisions/06d2e4d0e84b?raw)
