Events
- Active Campaign
- Acuity
- Axle Health
- Butterfly Labs
- Calendly
- Customer.io
- Elation
- Feathery
- Formsort
- Healthie
- Hubspot
- IntakeQ
- Junction
- Morf
- Segment
Actions
- Active Campaign
- Customer.io
- Facebook
- Freshdesk
- Google
- Healthie
- Hubspot
- IntakeQ
- Intercom
- Mixpanel
- Morf
- Nextdoor
- Open Phone
- Segment
- Slack
- Spruce
- Stedi
- Stripe
- Tiktok
- Twilio
Add Contact Subscriptions
Documentation for the Add Contact Subscriptions action for Intercom
{
"$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
{
"$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
.
The type of the object - subscription
$result_object_key[*].type
"subscription"
The unique identifier representing the subscription type
$result_object_key[*].id
"sub_12345"
The state of the subscription type
$result_object_key[*].state
"live"
A translation object contains the localized details of a subscription type
$result_object_key[*].default_translation
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
The name of the subscription type
$result_object_key[*].default_translation.name
"Newsletter Subscription"
The description of the subscription type
$result_object_key[*].default_translation.description
"Subscription to receive newsletters"
The locale of the subscription type
$result_object_key[*].default_translation.locale
"en"
An array of translations objects with the localized version of the subscription type in each available locale within your translation settings.
$result_object_key[*].translations
[
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
]
Mapped array of: The name of the subscription type
$result_object_key[*].translations.map(x, x.name)
[
"Newsletter Subscription"
]
Mapped array of: The description of the subscription type
$result_object_key[*].translations.map(x, x.description)
[
"Subscription to receive newsletters"
]
Mapped array of: The locale of the subscription type
$result_object_key[*].translations.map(x, x.locale)
[
"en"
]
Describes the type of consent
$result_object_key[*].consent_type
"opt_in"
The message types that this subscription supports - can contain ‘email’ or ‘sms_message’
$result_object_key[*].content_types
[
"email",
"sms_message"
]
{
"$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"
}
]
}