Twilio · Arazzo Workflow

Twilio Studio Create a Flow and Run an Execution

Version 1.0.0

Publish a new Studio Flow from a definition, then trigger an execution of it for a contact.

1 workflow 1 source API 1 provider
View Spec View on GitHub AuthenticationCommunicationsContact CenterEmailIoTMessagingPhoneSMST1VerificationVideoVoiceArazzoWorkflows

Provider

twilio

Workflows

create-flow-and-execute
Publish a Studio Flow then trigger and inspect an execution.
Creates a published Studio Flow from a definition, triggers an execution for a contact, and fetches the execution status.
3 steps inputs: definition, friendlyName, from, status, to outputs: executionSid, flowSid, status
1
createFlow
Create and publish a new Studio Flow from the supplied definition.
2
triggerExecution
Trigger an execution of the newly created flow for the contact.
3
fetchExecution
Fetch the execution by SID to read its current status.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Twilio Studio Create a Flow and Run an Execution
  summary: Publish a new Studio Flow from a definition, then trigger an execution of it for a contact.
  description: >-
    An end-to-end Studio authoring and activation flow. The workflow creates a
    new Studio Flow from a JSON flow definition and publishes it, then triggers
    an execution of the freshly created flow for a specific contact, and finally
    fetches the execution back to read its status. This chains flow authoring
    directly into a live run. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: flowsApi
  url: ../openapi/twilio-flows-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-flow-and-execute
  summary: Publish a Studio Flow then trigger and inspect an execution.
  description: >-
    Creates a published Studio Flow from a definition, triggers an execution for
    a contact, and fetches the execution status.
  inputs:
    type: object
    required:
    - friendlyName
    - status
    - definition
    - to
    - from
    properties:
      friendlyName:
        type: string
        description: Human-readable name for the new flow.
      status:
        type: string
        description: Flow status to publish with - draft or published.
      definition:
        type: string
        description: JSON flow definition string.
      to:
        type: string
        description: Contact phone number to run the execution for (E.164).
      from:
        type: string
        description: Twilio number or sender associated with the flow.
  steps:
  - stepId: createFlow
    description: >-
      Create and publish a new Studio Flow from the supplied definition.
    operationId: CreateFlow
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        FriendlyName: $inputs.friendlyName
        Status: $inputs.status
        Definition: $inputs.definition
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      flowSid: $response.body#/sid
      valid: $response.body#/valid
  - stepId: triggerExecution
    description: >-
      Trigger an execution of the newly created flow for the contact.
    operationId: CreateExecution
    parameters:
    - name: FlowSid
      in: path
      value: $steps.createFlow.outputs.flowSid
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        To: $inputs.to
        From: $inputs.from
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      executionSid: $response.body#/sid
      status: $response.body#/status
  - stepId: fetchExecution
    description: >-
      Fetch the execution by SID to read its current status.
    operationId: FetchExecution
    parameters:
    - name: FlowSid
      in: path
      value: $steps.createFlow.outputs.flowSid
    - name: Sid
      in: path
      value: $steps.triggerExecution.outputs.executionSid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  outputs:
    flowSid: $steps.createFlow.outputs.flowSid
    executionSid: $steps.triggerExecution.outputs.executionSid
    status: $steps.fetchExecution.outputs.status

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/twilio-studio-create-flow-and-execute-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.