About the Custom Trigger API

The Custom Trigger API allows you to run automations on a Wix site from your code.

Automations created as part of an app or on a site have a set trigger that causes them to run. The trigger is typically a business event like a member login or invoice payment. An automation only runs for that specific event.

Using the Custom Trigger API, you can run an automation without tying it to a single specific event or creating a trigger in the app dashboard. This gives you greater control and flexibility over when your automations execute.

The API includes a single method, Run Trigger, that you can call anywhere in your code.

Before you begin

  • You must have the trigger ID of any automations you want to run.
  • If the custom trigger includes a payload schema, you need to know the fields it contains.

Use cases

  • Create a contact on a button click.
  • Update a Google sheet when a user inputs a value.
Did this help?