Skip to main content
POST
Trigger a specific automation directly

Authorizations

Authorization
string
header
required

Organization-scoped Mailr API key. Header: Authorization: Bearer ak_….

Query Parameters

id
string
required

The automation id to trigger.

Body

application/json

Highly tolerant of CRM/Zapier field shapes. address may be given flat or as properties.address (also deal_address/install_address). Name may be customer_first_name/customer_last_name, customer_name, or CRM properties.dealname/contact_name. deal_id may be properties.hs_object_id or objectId.

address
string
required
customer_first_name
string
customer_last_name
string
customer_name
string
deal_id
string
deal_amount
deal_stage
string
deal_name
string
contact_email
string
deal_date
string
mailr_lead_id
string

Echo-loop guard. Map this from the Mailr New Lead trigger when applicable.

campaign_id
string
properties
object

Response

Queued (or already queued — idempotent: true). queue_id is Mailr's internal id for the queued campaign job. attribution is present only for deal_won automations that attributed revenue.

success
boolean
automation
string

Automation name (omitted on the deal_id idempotent short-circuit).

customer_added
boolean
queued
boolean
queue_id
string

Mailr's internal id for the queued campaign job.

idempotent
boolean

True when this was a replay of an already-queued deal_id.

address
string

The geocoded/formatted address (omitted on the idempotent short-circuit).

attribution
object | null

Present only for deal_won automations that attributed revenue.