Create Petition

action_network.create_petition
ActionCRM & salesconnection required

Calls the Action Network API with the connection's credentials.

Create a petition with its public title, letter text and targets.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Action Network
Secret shape
the API key, or {"api_key": "…"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

7 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
title
The petition's public title, shown to everyone who signs it.
stringYes——Save the local library
origin_system
A human-readable name for the system creating this resource; Action Network requires it on every create.
stringYes——Mantle
name
An administrative title for the petition, seen only by organisers.
stringNo———
description
The petition's description, which may contain HTML.
stringNo———
petition_text
The letter text delivered to the petition's targets.
stringNo———
targets
Names of the petition's targets, such as an official or a company.
arrayNo—array of string["The Mayor"]
tag_list
Names of existing tags to apply; a name with no matching tag is ignored.
arrayNo—array of string["volunteer"]

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "origin_system": "Mantle",
  "tag_list": [
    "volunteer"
  ],
  "targets": [
    "The Mayor"
  ],
  "title": "Save the local library"
}

Output

One shape.

result

FieldTypeExample
identifiers
Namespaced ids, the first being action_network:<uuid>.
array—
title
The petition's public title.
string—
name
The petition's administrative title.
string—
description
The petition description, which may contain HTML.
string—
petition_text
The letter text sent to the petition's targets.
string—
target
The petition's targets, each an object carrying a name.
array—
total_signatures
How many signatures the petition has collected.
number—
browser_url
The public URL of the petition's page.
string—
created_date
ISO-8601 timestamp of when the petition was created.
string—
{
  "browser_url": "",
  "created_date": "",
  "description": "",
  "identifiers": [],
  "name": "",
  "petition_text": "",
  "target": [],
  "title": "",
  "total_signatures": 0
}

See Create Petition run in a workflow.

In a technical demo we add the Action Network connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.