Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. These can be helpful jumping-off points as you plan your implementation.

Retrieve the actions provided by a specific app on a site

To view the available actions for the Wix Inbox app installed on a site, call Resolve Actions and specify the Wix Inbox app ID as a filter:

Copy

Resolve Actions returns an array of actions available on the site for the specified app. Here's an example of a possible response:

Copy

For each retrieved action, use the appId and actionKey pair to reference the action when creating or updating an automation through the Automations API.

Create an action for an app

To add a new action to your app, call Create Action. You must provide your app's ID, a unique action key, and the action's input schema.

For example, to create a "Send gift card" action:

Copy

Create Action returns the created action with its generated ID:

Copy

After you create the action and publish your app, Wix users can add the action as a step in their automations.

Did this help?