This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Runs your action.
Wix calls Invoke when an automation that uses your action is triggered. The request includes parameters as specified in the action's input schema, as well as metadata about the current automation run.
If your action has an output schema, return your action's output parameters. Your action can return its results immediately, or it can tell Wix to wait for your action to complete by specifying a timeout and calling Report Action Invocation Completed to let Wix know that the action has completed.
Note: When your response includes a timeout, save the activationContext.invocationToken and include it in your call to Report Action Invocation Completed. This ensures that Wix associates your action's results with the correct automation run.