Set up the trigger
Choose API Call
Select API Call as the trigger method, then configure it and click
Save.
- Workflow Alias (optional) — a unique identifier you can use in place of the workflow ID in the execution endpoint.
- URL — the endpoint used to trigger the workflow. If you set an alias, it can replace the workflow ID in the URL.
- Payload — a sample JSON body for the data you’ll send. These fields
are available as data variables inside the workflow, just like an event
payload. Leave it as
{}if no data is needed.
Execute the workflow
Make aPOST request to the execution endpoint. Send the data in the request
body (or {} if there’s none).
| Header | Description |
|---|---|
linked_account_id | The linked account to run the workflow for. The workflow runs even for accounts that haven’t enabled it. |
slug | The slug of the integration the workflow belongs to. |
x-api-key | Your Refold API key. |
sync_execution | false by default (response returns only the execution_id). Set to true to also return the return_value from the workflow’s Response node. |
sync_execution: true isn’t allowed when the workflow contains a Group node.