---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# API access

# API access to Workflow Studio flows {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of API access to Workflow Studio flows

ServiceNow enables application developers to interact with Workflow Studio flows, subflows, and actions programmatically through dedicated APIs.
This functionality facilitates automation and integration by allowing server-side and client-side scripts to trigger and manage workflow components efficiently.
Show full answer Show less  

## Key Features

* **Server-side APIs (FlowAPI):** Allows triggering flows, subflows, and actions synchronously or asynchronously, with options to include or exclude execution details.
* **Client-side APIs (GlideFlow):** Supports client-side interaction with enabled flows, subflows, and actions. Designers must enable the *Client callable* option for these elements to be accessible from the client.
* **Quick Methods:** FlowAPI provides quick execution methods (e.g., `executeActionQuick()`, `startFlowQuick()`) that run workflow elements without creating execution records, optimizing performance for high-volume and production environments.
* **Streaming APIs:** JSONStreamingBuilder and XMLStreamingBuilder APIs allow construction of large JSON or XML payloads within Workflow Studio, enabling bulk data transmission to external APIs via REST or SOAP calls.
* **Run As Support:** Flows and subflows can be configured to run as either the system user or the initiating user, controlled via flow properties. Note that quick methods always run as the system user, and actions always run as the initiating user.
* **Code Snippets:** Developers can generate JavaScript code snippets for published flows, subflows, and actions. These snippets simplify integrating workflow calls within scripts such as business rules or background scripts. Draft or modified workflow elements do not generate snippets.

## Practical Benefits for ServiceNow Customers

* Enable automation by programmatically triggering workflows from server or client scripts, enhancing process efficiency.
* Improve performance in production environments through quick methods that reduce overhead by skipping record creation.
* Seamlessly integrate with third-party systems using streaming APIs to build and send complex JSON or XML payloads.
* Maintain security and execution context control by configuring run-as settings for flows and subflows.
* Accelerate development and integration tasks with readily available code snippets tailored to specific workflow components.  
Application developers can access Workflow Studio functionality through APIs for flows, subflows, and actions. Flow authors can enable individual flows, subflows, and actions to be client callable during design.

## Available Workflow Studio flow APIs {#api-access-flow-designer__section_kgw_bty_1fb}

Trigger flows, subflows, and actions using these APIs from server or client scripts.  

Server side
:   [FlowAPI](https://www.servicenow.com/docs/access?context=ScriptableFlowAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US): Trigger a flow, subflow, or action using
    synchronous or asynchronous methods, with or without execution details.

Client side
:   [GlideFlow](https://www.servicenow.com/docs/access?context=GlideFlowAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US): Perform client-side interactions with
    actions, flows, and subflows. Flow designers must enable a flow, subflow, and action
    to be called from the client.

## FlowAPI quick methods {#api-access-flow-designer__section_hm2_rtg_nhb}

Use quick methods in the [FlowAPI](https://www.servicenow.com/docs/access?context=ScriptableFlowAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) class to run an action, flow, or subflow from a
server-side script without creating execution details or other related records. Use these
methods to increase the speed of high-volume processing in a production environment, and to
improve performance by eliminating record-keeping overhead. Methods include:

* executeActionQuick(), executeFlowQuick(), executeSubflowQuick(): Run an action, flow, or subflow from a server-side script synchronously from the current user session.
* startActionQuick(), startFlowQuick(), startSubflowQuick(): Run an action, flow, or subflow from a server-side script asynchronously.
{#api-access-flow-designer__ul_mby_bwg_nhb}

## XML and JSON streaming APIs {#api-access-flow-designer__section_fh1_nsq_nlb}

Builds a large streaming or non-streaming JSON or XML payload to use in a REST or SOAP request to send bulk data to a third-party API. For example, you can use these APIs to create a JSON payload in the Workflow Studio Script step and pass the returned value to the REST step to send the request to a third-party service. For more information, see [JSONStreamingBuilder](https://www.servicenow.com/docs/access?context=JSONStreamingBuilderScopedAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) and [XMLStreamingBuilder](https://www.servicenow.com/docs/access?context=XMLStreamingBuilderScopedAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) .

## Client callable APIs {#api-access-flow-designer__section_ig1_mty_1fb}

By default, the flows, subflows, and actions can only be called by the FlowAPI within a server script. Flow and action designers can make individual flows, subflows, or actions available to client calls by enabling the Client callable option during the design process.

## Run as support {#api-access-flow-designer__section_b2p_jpy_jlb}

Flows and subflows can run as either the system user or the user who initiates the session.
Set this behavior from the [flow properties](https://www.servicenow.com/docs/n~fOsDedq_AYbOtGbZ5Nww "Run a sequence of actions and flow logic when the trigger conditions occur."). All
API quick methods ignore the run as property, and always run as the system user.

Actions always run as the user who initiates the session.

## Code snippets {#api-access-flow-designer__section_hry_rvy_1fb}

Application developers can generate a JavaScript function that calls a specific flow, subflow, or action with the Code Snippet option. Use the code snippet in scripts such as business rules or the
Scripts - Backgound module to call specific Workflow Studio elements. The system only generates code snippets for published flows, subflows, and actions. Workflow Studio elements in the draft or modified status do not generate code snippets.

