Retrieve the most recent context for an Execution.

GET /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context

JSON context for executions

Retrieve the most recent context for an Execution.

Path parameters

  • FlowSid string Required

    The SID of the Flow with the Execution context to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FW[0-9a-fA-F]{32}$.

  • ExecutionSid string Required

    The SID of the Execution context to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FN[0-9a-fA-F]{32}$.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the ExecutionContext resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • context

      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.

    • flow_sid string | null

      The SID of the Flow.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FW[0-9a-fA-F]{32}$.

    • execution_sid string | null

      The SID of the context's Execution resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FN[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the resource.

GET /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context
curl \
 --request GET 'https://studio.twilio.com/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context' \
 --user "username:password"
Response examples (200)
{
  "url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions/FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Context",
  "context": {
    "foo": "bar"
  },
  "flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "execution_sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}