Create an automation (switching on needs comms:bulk)

post/api/v1/automations

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/automations
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Request body

kind'rebook' | 'birthday' | 'lapsed' required
namestring required
channel'email' | 'sms' | 'whatsapp'
enabledboolean
after_weeksinteger
lapsed_daysinteger
service_idsstring[]
subjectstring
preview_textstring
bodystring

Plain text. Merge fields: {{first_name}}, {{client_name}}, {{business_name}}, {{booking_link}}, {{last_service}}

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.