Subscription Lists
Subscription lists are lists of channels that can be used to target messages to specific groups of users.
Contact subscription list object
A list of subscription list items associated with the specified contact. Each item consists of a list of list IDs and an optional scope.
OBJECT PROPERTIESA list of subscription lists associated to the specified scope. If no scope is specified these subscription lists are not scoped.
Min items: 1, Max items: 100
Example:
[example_listId-1 example_listId-5]- scope string<Scopes>
The channel types where membership applies. The
appscope includesiOS,Android, andAmazonchannels.Possible values:
appwebemailsms
Used in:
Examples
Example contact subscription lists object
{
"list_ids": ["example_listId-2", "example_listId-4"],
"scope": "app"
}
Contact subscription list object
Defines the subscription list changes.
OBJECT PROPERTIES- subscribe array[string]
Subscribe to the specified subscription list identifier.
- unsubscribe array[string]
Unsubscribe the specified subscription list identifier.
Used in:
List ID
A list ID that contains only alphanumeric characters, underscores, or hyphens.
Used in:
- Create and send experiment (A/B test)
- Create and Send message
- Create pipelines (automated message)
- Create segment
- Create template
- Enter or exit users from Sequence
- List channels
- List existing pipelines
- List experiments
- List filtered pipelines
- List named user subscription lists
- List or look up named users
- List scheduled experiments
- List schedules
- List subscription lists
- List templates
- Look up channel
- Look up email address
- Look up experiment
- Look up pipeline
- Look up schedule
- Look up segment
- Look up SMS channel
- Look up template
- Schedule Create and Send message
- Schedule message with bulk ID
- Schedule notifications
- Schedule templated pushes
- Send message with bulk ID
- Send pushes
- Send templated pushes
- Subscribe or unsubscribe channels to/from subscription lists
- Update pipeline
- Update schedule
- Update segment
- Update template
- Validate Create and Send payload
- Validate experiment
- Validate message with bulk ID
- Validate pipelines
- Validate pushes
- Validate templated pushes
Named user scoped batch item
Contains scope and subscription_lists.
Defines the subscription list changes.
Used in:
Examples
Example scoped batch item
{
"scope": ["app"],
"subscription_lists": {
"subscribe": ["stickers", "gifs"],
"unsubscribe": ["cookies"]
}
}
Named user subscription list object
Defines the subscription list changes.
OBJECT PROPERTIES- subscribe array[string]
Subscribe to the specified subscription list identifier.
- unsubscribe array[string]
Unsubscribe the specified subscription list identifier.
Used in:
Examples
Example subscription lists object
{
"subscribe": ["stickers", "gifs"],
"unsubscribe": ["cookies"]
}
Scopes
The channel types where membership applies. The app scope includes iOS, Android, and Amazon channels.
appwebemailsms
Used in:
- Create and send experiment (A/B test)
- Create and Send message
- Create pipelines (automated message)
- Create template
- List channels
- List existing pipelines
- List experiments
- List filtered pipelines
- List named user subscription lists
- List or look up named users
- List scheduled experiments
- List schedules
- List subscription lists
- List templates
- Look up channel
- Look up email address
- Look up experiment
- Look up pipeline
- Look up schedule
- Look up SMS channel
- Look up template
- Perform scoped contact batch operations
- Perform scoped named user batch operations
- Schedule Create and Send message
- Schedule message with bulk ID
- Schedule notifications
- Schedule templated pushes
- Send message with bulk ID
- Send pushes
- Subscribe or unsubscribe channels to/from subscription lists
- Update pipeline
- Update schedule
- Update template
- Validate Create and Send payload
- Validate experiment
- Validate message with bulk ID
- Validate pipelines
- Validate pushes
Subscription list action
A string representing the membership mutation action to be taken for a given list.
subscribeunsubscribe
Used in:
- Create and send experiment (A/B test)
- Create and Send message
- Create pipelines (automated message)
- Create template
- List channels
- List existing pipelines
- List experiments
- List filtered pipelines
- List or look up named users
- List scheduled experiments
- List schedules
- List templates
- Look up channel
- Look up email address
- Look up experiment
- Look up pipeline
- Look up schedule
- Look up SMS channel
- Look up template
- Schedule Create and Send message
- Schedule message with bulk ID
- Schedule notifications
- Schedule templated pushes
- Send message with bulk ID
- Send pushes
- Subscribe or unsubscribe channels to/from subscription lists
- Update pipeline
- Update schedule
- Update template
- Validate Create and Send payload
- Validate experiment
- Validate message with bulk ID
- Validate pipelines
- Validate pushes
Subscription list item object
An item consisting of a list of list IDs and scope.
OBJECT PROPERTIESA list of subscription lists associated to the specified scope. If no scope is specified these subscription lists are not scoped.
Min items: 1, Max items: 100
Example:
[example_listId-1 example_listId-5]- scope string
Scope as a string.
Possible values:
appemailsmsweb
Used in:
Examples
Example subscription list item
{
"list_ids": ["example_listId-2", "example_listId-3"],
"scope": "app"
}
Subscription list object
OBJECT PROPERTIES- action REQUIREDOne of
- Channel subscription list action object
Alters subscription list membership for a channel.
OBJECT PROPERTIESA string representing the membership mutation action to be taken for a given list.
Possible values:
subscribeunsubscribe
A list ID that contains only alphanumeric characters, underscores, or hyphens.
- type stringREQUIRED
Possible values:
channel
- Contact subscription list action object
Alters subscription list membership for a contact.
OBJECT PROPERTIESA string representing the membership mutation action to be taken for a given list.
Possible values:
subscribeunsubscribe
A list ID that contains only alphanumeric characters, underscores, or hyphens.
The channel types where membership applies. The
appscope includesiOS,Android, andAmazonchannels.Possible values:
appwebemailsms
- type stringREQUIRED
Possible values:
contact
A list ID that contains only alphanumeric characters, underscores, or hyphens.
- timestamp string
The date-time when the attribute changed. Server time is used when not present.
Format: date-time
Used in:
- List channels
- List or look up named users
- Look up channel
- Look up email address
- Look up SMS channel
- Subscribe or unsubscribe channels to/from subscription lists
Examples
Example subscription list object
{
"action": "subscribe",
"list_id": "exciting_news"
}
Subscription list result object
Defines the subscription list result object.
OBJECT PROPERTIES- default_opted_in booleanREQUIRED
Trueif the audience defined byscopesare opted in by default, otherwisefalse. - description object
Description of the subscription list.
A list ID that contains only alphanumeric characters, underscores, or hyphens.
- message_type string
The message type.
Possible values:
transactionalcommercial
- name string
Human readable name.
Example:
A nice name readable name 1 An array of scopes applicable to the subscription list. Valid scopes are
app,web,email, andsms.Min items: 1, Max items: 100
Used in:
Examples
Example subscription list result object
{
"list_id": "example_listId-2",
"name": "A nice readable name 2",
"description": "A very nice description for you.",
"scopes": ["app", "web"],
"default_opted_in": true
}