younifyd
Menu

List Subscriptions For A Contact

List subscriptions for a contact

GET/contacts/{contact_id}/subscriptions

Use it in a workflow

  1. Add a step and choose the Intercom connector.
  2. Pick the List Subscriptions For A Contact action (under Contacts).
  3. Fill in the fields below, then reference the result from later steps as {{listSubscriptionsForAContact.response.data}}.

Request

Path parameters

contact_idstringrequired

The unique identifier for the contact which is given by Intercom

Headers

Intercom-Versionstring

Intercom API version.</br>By default, it's equal to the version set in the app package.

One of1.01.11.21.31.42.02.12.22.32.42.52.62.72.82.92.102.112.122.132.142.152.16Default "2.16"

Response

Returns 200 with an object. Read it in later steps with {{listSubscriptionsForAContact.response.data.<field>}}.

typestring

The type of the object

One oflist

dataarray<object>

A list of subscription type objects associated with the workspace .

typestring

The type of the object - subscription

idstring

The unique identifier representing the subscription type.

statestring

The state of the subscription type.

One oflivedraftarchived

default_translationobject3 fields

A translation object contains the localised details of a subscription type.

translationsarray<object>3 fields

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

consent_typestring

Describes the type of consent.

One ofopt_outopt_in

content_typesarray<string>

The message types that this subscription supports - can contain `email` or `sms_message`.

json
{
  "type": "list",
  "data": [
    {
      "type": "subscription",
      "id": "123456",
      "state": "live",
      "default_translation": {
        "name": "Announcements",
        "description": "Offers, product and feature announcements",
        "locale": "en"
      },
      "translations": [
        {
          "name": "Announcements",
          "description": "Offers, product and feature announcements",
          "locale": "en"
        }
      ],
      "consent_type": "opt_in",
      "content_types": [
        "email"
      ]
    }
  ]
}

Need more? See the Intercom guide for connection setup and behaviour shared by every action.