Saltar al contenido principal

Marketing-automations API

Auto-generated from the OpenAPI spec. Run node docs-site/scripts/fetch-openapi.js to regenerate.

GET /api/v1/marketing-automations​

List Automations

Responses

  • 200 — Successful Response

POST /api/v1/marketing-automations​

Create Automation

Request body

FieldRequiredTypeDescription
nameYesstring
trigger_eventYesstring
condition_jsonNoobject
exit_condition_jsonNoobject
stepsNoarray
statusNostring

Responses

  • 201 — Successful Response
  • 422 — Validation Error

GET /api/v1/marketing-automations/{automation_id}​

Get Automation

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

PUT /api/v1/marketing-automations/{automation_id}​

Update Automation

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Request body

FieldRequiredTypeDescription
nameNostring
trigger_eventNostring
condition_jsonNoobject
exit_condition_jsonNoobject
stepsNoarray
statusNostring

Responses

  • 200 — Successful Response
  • 422 — Validation Error

DELETE /api/v1/marketing-automations/{automation_id}​

Delete Automation

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

POST /api/v1/marketing-automations/{automation_id}/pause​

Pause Automation

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

POST /api/v1/marketing-automations/{automation_id}/resume​

Resume Automation

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

GET /api/v1/marketing-automations/{automation_id}/enrollments​

List Enrollments

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger
statusqueryNo
pagequeryNointeger
page_sizequeryNointeger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

GET /api/v1/marketing-automations/{automation_id}/stats​

Get Automation Stats

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error

DELETE /api/v1/marketing-automations/{automation_id}/enrollments/{enrollment_id}​

Cancel Enrollment

Soft unenroll a single client: status='cancelled'. Deliberately different from the parent-automation hard-delete above — keeps history when only one enrollment is cancelled.

Parameters

NameInRequiredTypeDescription
automation_idpathYesinteger
enrollment_idpathYesinteger

Responses

  • 200 — Successful Response
  • 422 — Validation Error