Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion source/API_Reference/SMTP_API/suppressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,30 @@ You may only specify one group per send, and you should wait one minute after cr
}
{% endcodeblock %}

{% anchor h2 %}
Defining ASM Groups to display on the Manage Preferences page
{% endanchor %}

To specify which groups to display on the Manage Preferences page of an email, add the group IDs to the X-SMTPAPI header of an SMTP message, or in the x-smtpapi parameter of a [mail.send API
call]({{root_url}}/API_Reference/Web_API/mail.html).
If the asm_groups_to_display header is omitted, your default groups will be shown on the Manage Preferences page instead.

{% warning %}
You can specify up to 25 groups to display.
{% endwarning %}

{% codeblock lang:json %}
{
"asm_groups_to_display": [1, 2, 3]
}
{% endcodeblock %}

{% anchor h2 %}
Groups
{% endanchor %}

You can find your group IDs by looking at the Group ID column in the Advanced Suppression Manager UI, or by calling the [GET method]({{root_url}}/API_Reference/Web_API_v3/Advanced_Suppression_Manager/groups.html#-GET) of the groups resource.

Related Articles:

* You can create ASM groups via the [API V3 > ASM Endpoint]({{root_url}}/API_Reference/Web_API_v3/Unsubscribe_Manager/groups.html#-POST).
* You can create ASM groups via the [API V3 > ASM Endpoint]({{root_url}}/API_Reference/Web_API_v3/Unsubscribe_Manager/groups.html#-POST).