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
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
credits
object