{
  "$result_object_key": [
    {
      "consent_type": "opt_in",
      "content_types": [
        "email",
        "sms_message"
      ],
      "default_translation": {
        "description": "Subscription to receive newsletters",
        "locale": "en",
        "name": "Newsletter Subscription"
      },
      "id": "sub_12345",
      "state": "live",
      "translations": [
        {
          "description": "Subscription to receive newsletters",
          "locale": "en",
          "name": "Newsletter Subscription"
        }
      ],
      "type": "subscription"
    }
  ]
}
{
  "$result_object_key": [
    {
      "consent_type": "Describes the type of consent",
      "content_types": "The message types that this subscription supports - can contain 'email' or 'sms_message'",
      "default_translation": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "id": "The unique identifier representing the subscription type",
      "state": "The state of the subscription type",
      "translations": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "type": "The type of the object - subscription"
    }
  ]
}

Parameters

Action
Parameters
{
  "$result_object_key": [
    {
      "consent_type": "opt_in",
      "content_types": [
        "email",
        "sms_message"
      ],
      "default_translation": {
        "description": "Subscription to receive newsletters",
        "locale": "en",
        "name": "Newsletter Subscription"
      },
      "id": "sub_12345",
      "state": "live",
      "translations": [
        {
          "description": "Subscription to receive newsletters",
          "locale": "en",
          "name": "Newsletter Subscription"
        }
      ],
      "type": "subscription"
    }
  ]
}
{
  "$result_object_key": [
    {
      "consent_type": "Describes the type of consent",
      "content_types": "The message types that this subscription supports - can contain 'email' or 'sms_message'",
      "default_translation": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "id": "The unique identifier representing the subscription type",
      "state": "The state of the subscription type",
      "translations": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "type": "The type of the object - subscription"
    }
  ]
}

Result Object Field Details

You can use the result of the action’s data as inputs to downstream workflow actions.

Each fetch action requires a result object key to be specified which will nest the action’s result data inside the downstream data context in the Workflow.

Here we demonstrate how to refer to this data using the prefix $result_object_key.

[]SubscriptionType
Fetch Action Response Object