Group Subscribers
Learn how to create and update groups of subscribers, useful for targeted messaging.
Last updated
Was this helpful?
Learn how to create and update groups of subscribers, useful for targeted messaging.
Last updated
Was this helpful?
Organizing subscribers into different groups enables you to easily send out targeted messages to specific segments. With Mobile Text Alerts, you can add, edit, and remove groups and subscribers via the or with the , making it easy to keep your contact lists updated.
Successful response: "message": "Created group Example."
Groups can be deleted without needed to supply a request body. Simply include the {groupId}
of the group to be deleted as a path parameter with your DELETE
request.
In the below example we are deleting groupId
: 187561
.
Successful Response: {"message":"Group deleted successfully."}
In the below example, we are updating groupId
: 187561
.
Successful response: "message": "Updated group New Name."
Query responses include the following data:
page
- the current page of results being shown
pageSize
- number of groups shown per page
total
- the total number of groups on your account
Successful response:
To add a subscriber to a group you will need both the subscriberId
and the groupId
. The subscriberId
is passed on the body of the request, while the groupId
is specified as a path parameter.
In the below example we are adding subscriberId
:108767117
to groupId
: 187561
.
Successful response: {"message":"Added subscriber 108767117 to group 187561."}
In the below example we are deleting subscriberId
:108767117
from groupId
: 187561
.
Successful Response: {"message":"Deleted subscriber 108767117 from group 187561."}
The Mobile Text Alerts API allows you to , , s metadata or for your account.
Note that these actions are used to make changes to the group itself, not the subscribers that may be contained within the group. See to see actions for adding/removing subscribers from your groups.
A POST
call to the endpoint will create a new group, for the group metadata when creating a new group.
The fields that contain the metadata about a group can be added or updated at anytime by calling the PATCH
endpoint with the identifying {groupId}
of the group to be updated. that contain the group metadata.
Call the GET
endpoint to see all the groups on your account.
Subscribers can be or from your groups with the API endpoints documented below.
Subscribers can be removed from a group by identifying them with the groupId
and subscriberId
in the path parameters to the DELETE
endpoint.
name
- required
string
The name of the group.
hidden
boolean
Indicates if the group is hidden.
description
string
Description of the group.
displayName
string
An alternate display name for this group
sortOrder
number
Override default sorting when displaying this group on the subscriber sign up page
isTemporary
boolean
When set to true, this group is marked as temporary. Temporary groups are deleted at midnight of the day following their creation.
createdAt
string
Timestamp of when the group was created. For example: "2025-05-29T19:04:14.000Z"
name
- required
string
The name of the group.
hidden
boolean
Indicates if the group is hidden.
description
string
Description of the group.
displayName
string
An alternate display name for this group
sortOrder
number
Override default sorting when displaying this group on the subscriber sign up page
isTemporary
boolean
When set to true, this group is marked as temporary. Temporary groups are deleted at midnight of the day following their creation.
createdAt
string
Timestamp of when the group was created. For example: "2025-05-29T19:04:14.000Z"
Required Fields: subscriberId
Note: Field addToDripCampaigns
is true
by default.
undefined