Automations (developers)

Santeri

Last Update 19 days ago

Automations are used to automatically gather feedback and reviews from Contacts. You can create your automations in Trustmary here. If you need help, see our instructions.

Automation object

Attributes:

  • id string
    • Unique identifier for the object.
  • name string
    • User given automation name
  • type string
    • Type of automation. Allowed values: customer, employee
  • status string
    • Status of the automation. Allowed values: active, draft
  • created_at ISO 8601 with timezone
    • Time automation was created.
  • updated_at ISO 8601 with timezone
    • Time of last update performed on the automation object.

Getting automations

Returning

Triggering an Automation for a Contact

Automations can have triggers like "Contact added to a list", "Contact answered a survey", or using this endpoint to manually trigger an automation for a Contact.

Body attributes:

  • email string (required)
    • Contact email address. Requires a valid email.
  • field_YOURFIELDNAME string (optional)
    • Any number of custom fields can be added. Custom fields need to be added to Trustmary before they can be used.

Returning

Attributes:

  • action string
    • TRIGGER_AUTOMATION is returned if the triggering was successful.

Still need help? Message Us