Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Step Context



ExecutionStepContext Properties

executionstepcontext-properties page anchor
Resource properties
account_sidtype: SID<AC>Not PII

The SID of the Account(link takes you to an external page) that created the ExecutionStepContext resource.


contexttype: objectPII MTL: 30 days

The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.


execution_sidtype: SID<FN>Not PII

The SID of the context's Execution resource.


flow_sidtype: SID<FW>Not PII

The SID of the Flow.


step_sidtype: SID<FT>Not PII

The SID of the Step that the context is associated with.


urltype: string<URI>Not PII

The absolute URL of the resource.


Fetch a single step context

fetch-a-single-step-context page anchor
GET https://studio.twilio.com/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context

Parameters

fetch-parameters page anchor
URI parameters
FlowSidtype: SID<FW>Not PII
Path Parameter

The SID of the Flow with the Step to fetch.


ExecutionSidtype: SID<FN>Not PII
Path Parameter

The SID of the Execution resource with the Step to fetch.


StepSidtype: SID<FT>Not PII
Path Parameter

The SID of the Step to fetch.

Fetch Execution Step Context

fetch-execution-step-context page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_13
// Download the helper library from https://www.twilio.com/docs/node/install
_13
// Find your Account SID and Auth Token at twilio.com/console
_13
// and set the environment variables. See http://twil.io/secure
_13
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13
const authToken = process.env.TWILIO_AUTH_TOKEN;
_13
const client = require('twilio')(accountSid, authToken);
_13
_13
client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.executions('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.steps('FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.stepContext()
_13
.fetch()
_13
.then(execution_step_context => console.log(execution_step_context.context));

Output

_10
{
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"context": {
_10
"foo": "bar"
_10
},
_10
"flow_sid": "FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"execution_sid": "FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"step_sid": "FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"url": "https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Executions/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Steps/FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Context"
_10
}


Rate this page: