> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Contact Subscriptions

> Documentation for the Add Contact Subscriptions action for Intercom

![images/intercom.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/intercom.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=9da8767a0b421cfaadbfd9eef6bf6adf)

# Parameters

**Action** `Parameters`

**parameters**

**Contact ID** `string`

`ID`
This field maps to the destination API `contact_id` field.

**Subscriptions** `Map\<Subscription Type,string\>` *required*

This field maps to the destination API `subscriptions` field.

```json Result Object Example theme={null}
{
  "$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"
    }
  ]
}
```

```json Result Object Description theme={null}
{
  "$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 an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

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

**\[]SubscriptionType** `Fetch Action Response Object`

**fields**

**type** `string` *required*

The type of the object - subscription

```json CEL theme={null}
$result_object_key[*].type
```

```json Example theme={null}
"subscription"
```

**id** `string` *required*

The unique identifier representing the subscription type

```json CEL theme={null}
$result_object_key[*].id
```

```json Example theme={null}
"sub_12345"
```

**state** `string` *required*

The state of the subscription type

```json CEL theme={null}
$result_object_key[*].state
```

```json Example theme={null}
"live"
```

**default\_translation** `object` *required*

A translation object contains the localized details of a subscription type

```json CEL theme={null}
$result_object_key[*].default_translation
```

```json Example theme={null}
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
```

**default\_translation.name** `string` *required*

The name of the subscription type

```json CEL theme={null}
$result_object_key[*].default_translation.name
```

```json Example theme={null}
"Newsletter Subscription"
```

**default\_translation.description** `string`

The description of the subscription type

```json CEL theme={null}
$result_object_key[*].default_translation.description
```

```json Example theme={null}
"Subscription to receive newsletters"
```

**default\_translation.locale** `string` *required*

The locale of the subscription type

```json CEL theme={null}
$result_object_key[*].default_translation.locale
```

```json Example theme={null}
"en"
```

**translations** `[]object` *required*

An array of translations objects with the localized version of the subscription type in each available locale within your translation settings.

```json CEL theme={null}
$result_object_key[*].translations
```

```json Example theme={null}
[
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
]
```

**translations.map(x, x.name)** `[]string` *required*

Mapped array of: The name of the subscription type

```json CEL theme={null}
$result_object_key[*].translations.map(x, x.name)
```

```json Example theme={null}
[
"Newsletter Subscription"
]
```

**translations.map(x, x.description)** `[]string` *required*

Mapped array of: The description of the subscription type

```json CEL theme={null}
$result_object_key[*].translations.map(x, x.description)
```

```json Example theme={null}
[
"Subscription to receive newsletters"
]
```

**translations.map(x, x.locale)** `[]string` *required*

Mapped array of: The locale of the subscription type

```json CEL theme={null}
$result_object_key[*].translations.map(x, x.locale)
```

```json Example theme={null}
[
"en"
]
```

**consent\_type** `string`

Describes the type of consent

```json CEL theme={null}
$result_object_key[*].consent_type
```

```json Example theme={null}
"opt_in"
```

**content\_types** `[]string` *required*

The message types that this subscription supports - can contain 'email' or 'sms\_message'

```json CEL theme={null}
$result_object_key[*].content_types
```

```json Example theme={null}
[
"email",
"sms_message"
]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.