Skip to main content
POST
Create play

Authorizations

Authorization
string
header
required

Access token issued by gs.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 create_play.

playtable_sid
string
required

The table the play lives in; its audience is resolved inside it.

Required string length: 18
Pattern: ^pt_tb_
catalog_key
enum<string>

A playbook play: the entry gives object, audience, action and name, so send only the table (plus action.workflow_sid for a people play; cadence, switch, ceiling if wanted). Born once per table: a repeat answers the existing row, already_exists true.

Available options:
keep_fresh,
congratulate,
on_job_change,
engage_posts,
on_website_visit,
find_people_empty,
top_up_thin,
top_up_silent,
top_up_no_reply,
top_up_exhausted,
find_decision_maker,
reengage_dormant,
reach_untouched
name
string

Required without catalog_key; with it, a name over the entry's.

Required string length: 1 - 255
object_type
enum<string>

Required without catalog_key. What the audience selects: company for find_people, people for add_to_workflow (422 otherwise).

Available options:
people,
company
action_type
enum<string>

Required without catalog_key.

Available options:
find_people,
add_to_workflow,
refresh,
congratulate,
on_job_change,
engage_posts,
on_website_visit
action
object

The action's parameters (required without catalog_key), the keys of the action_type over the entry's defaults. The sids of the play's sources are never sent: the server births them. A workflow a typed action names must be the team's, live and published.

watch
object | null

What the play keeps refreshed; absent on a playbook play = the entry's; a cadence outside the product's own is 422; null = nothing.

mode
enum<string>

ask_me | automatic; absent on a playbook play = the entry's (ask me for the plays that act).

Available options:
ask_me,
automatic
audience
any

Without catalog_key: the tab's filter AST, validated like a saved view. Signals by name: {field: signals, op: {in: [no_engagement]}}; the category: {field: pipeline_stage_category, op: {in: [nurture]}}; several under {and: [...]}. Omit = the whole tab.

cadence
enum<string>

Default manual.

Available options:
manual,
daily
enabled
boolean

daily only: true is the consent, stated with the estimate; the first run follows within the minute. 422 on a manual play.

daily_credit_limit
integer | null

find_people only: what one day may spend. 422 on an add_to_workflow play.

Required range: x >= 1

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required