---
schema_version: "1"
id: aa16bb14d0da63ac6cb9d2236c7757a4ad2d02bbb1cd9d04611a2bd98ef89c4f
title: On-Demand Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_concepts_trigger_on_demand.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_on_demand.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1263ba87bccba2191ae0ab14a707a31269152712f2039bc9c1995a983341a952
description: On-demand flows are triggered by REST API calls. For example, create an automation to send your customer an SMS message that triggers after a user signs up for a membership program, or after the user clicks a button on your site.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# On-Demand Flows

On-demand flows are triggered by REST API calls. For example, create an automation to send your customer an SMS message that triggers after a user signs up for a membership program, or after the user clicks a button on your site.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature is available in <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions with Marketing Cloud <strong>Growth</strong> or <strong>Advanced</strong> Edition.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All Editions</strong> supported by Data 360. See <a href="https://help.salesforce.com/s/articleView?id=data.c360_a_dc_editions.htm&amp;language=en_US" target="_blank">Data 360 edition availability</a>.</td></tr></tbody></table>

On-Demand Flows enable developers to integrate high-scale marketing flows into external systems via API calls. Marketing admins maintain control of flow logic and messaging while developers handle the integration. This approach allows you to create personalized customer experiences that respond to real-time events from your external systems.

## Usage

Before triggering your flow, grant access to the triggering user. Learn more in [Give Users Access to Trigger On-Demand Flows](https://help.salesforce.com/s/articleView?id=platform.automate_flow_build_on_demand_grant_perms.htm&release=264.0.0&type=5 "Before triggering on-demand flows, give the triggering user access to the flow.")

To trigger the flow, use a REST call with the standard Salesforce invocable action endpoint for the flow. For example, to trigger a flow named FLOW\_API\_NAME, use this.

```
POST /services/data/v65.0/actions/custom/flow/FLOW_API_NAME
```

Before triggering the flow, you can use a REST call to get a description of the flow and see all of the possible inputs available for the flow to invoke it. For example, to get the flow description and inputs for a flow named FLOW\_API\_NAME, use this.

```
GET /services/data/v65.0/actions/custom/flow/FLOW_API_NAME
```

## Inputs

Input values vary according to the input variables specified in the flow. EmailAddress, IndividualId, and TelephoneNumber are always available as input.

  
| Input | Description | Required? |
| --- | --- | --- |
| EmailAddress | The contact point email address for the individual. | No |
| IndividualId | The ID for the individual DMO. | Yes |
| TelephoneNumber | The contact point phone number for the individual. | No |
| ProcessingPriority | The priority to give the bulk request. | No |

#### See Also

- [Start a Flow from REST API](https://help.salesforce.com/s/articleView?id=platform.flow_distribute_system_rest.htm&release=264.0.0&type=5 "Use a REST call to run an autolaunched flow by using the invocable action endpoint and setting the path to flow. For example, you can run a flow from a non-Salesforce application or piece of code. The flow retrieves data from Salesforce and returns it as an output variable in your REST call.")
- [_Action Developer Guide_: Flow Actions](https://developer.salesforce.com/docs/atlas.en-us.api_action.meta/api_action/actions_obj_flow.htm)