Skip to main content
POST
Preview mass-action plan

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of preview_mass_action.

target_entity
string
required

Kebab-plural entity family the plan's steps operate on, e.g. 'linkedin-connection-requests', 'linkedin-posting' or 'email-messages'. The compatibility anchor a linked auto-scrape checks against.

Maximum string length: 128
scope
object
required

What the run enrols: existing rows (objects), payload identities (targets), generated slots (generate), or nothing yet (none, a standing run an auto-scrape feeds).

plan
object
required

1..3 steps. A step that acts as one of the team's accounts names it in its args (linkedin_account_sid for a connect, message, follow, react or comment step, email_account_sid for email), else 422 sender_required on plan.steps.{i}.args; a message or comment step carries the one text every target gets in args.text, else 422 text_required. A LinkedIn sender must be able to send right now: an account still in its first sync, lent to another team (shared_out), parked by the subscription, signed out of LinkedIn, restricted, parked for an error investigation, or not connected in this team is refused with 422 sender_not_ready on plan.steps.{i}.args.linkedin_account_sid, the message naming the state and the way out; create asks again. A target's payload carries the target and its per-send extras (note, client_reference), never the sender.

title
string | null

Human label for the run, shown in the list view and on the consent surface.

Maximum string length: 255
schedule
object | null

Omit for an ASAP drain. Required when the plan carries a send-class step, else 422 schedule_required.

canary_mode
enum<string>

Default 'first_item': only item 1 dispatches until it succeeds, so a wrong plan burns one target instead of all of them.

Available options:
none,
first_item

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
any
required
result
object
required
meta
object
required