screen-usersGroup Subscribers

Learn how to create and update groups of subscribers, useful for targeted messaging.

Organizing subscribers into different groups enables you to easily send targeted messages to specific segments. With Mobile Text Alerts, you can add, edit, and remove groups and subscribers via the online dashboardarrow-up-right or with the Mobile Text Alerts API, making it easy to keep your contact lists updated.

Manage Group Members in the online dashboard

Manage Groups with the API

The Mobile Text Alerts API allows you to create a group, delete a group, update an existing group's metadata, or view all groups 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 Manage Group Members to see actions for adding/removing subscribers from your groups.

Click here to view the full API Reference for Groups.

Create a new Group

A POST call to the /groups endpoint creates a new group. See below for all additional request fields for group metadata.

Example request

Successful response: "message": "Created group Example."

Request Fields

Name
Type
Description

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"

settings

object

This field is only used for Adaptive Groups. See Configure settings field for a group to learn more about this field.

Create Group

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idnumberOptional
accountIdnumberOptional
namestringOptional
hiddennumberOptional
keywordstringOptional
welcomeMessagestringOptional
descriptionstringOptional
parentWebinarIdstringOptional
displayNamestring | nullableOptional
sortOrdernumber | nullableOptional
typestring · enumOptionalPossible values:
isTemporarybooleanOptional
createdAtone ofOptional
string · date-timeOptional
or
stringOptional
or
string | nullableOptional
Responses
chevron-right
200

Success

application/json
post
/groups

Delete Group

Groups can be deleted without needing to supply a request body. Simply include the {groupId} of the group to be deleted as a path parameter with your DELETE request.

Example Request

In the example below, we delete groupId: 187561.

Successful Response: {"message":"Group deleted successfully."}

Delete Group

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupIdstringRequired
Responses
chevron-right
200

Success

application/json
delete
/groups/{groupId}

Update Groups

The fields that contain group metadata can be added or updated at any time by calling the PATCH /groups/{groupId} endpoint with the identifying {groupId} of the group to be updated. See below for all optional request fields that contain group metadata.

Example Request

In the example below, we update groupId: 187561.

Successful response: "message": "Updated group New Name."

Request Fields

Name
Type
Description

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"

settings

object

This field is only used for Adaptive Groups. See Configure settings field for a group to learn more about this field.

Update Group

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupIdstringRequired
Body
idnumberOptional
accountIdnumberOptional
namestringOptional
hiddennumberOptional
keywordstringOptional
welcomeMessagestringOptional
descriptionstringOptional
parentWebinarIdstringOptional
displayNamestring | nullableOptional
sortOrdernumber | nullableOptional
typestring · enumOptionalPossible values:
isTemporarybooleanOptional
createdAtone ofOptional
string · date-timeOptional
or
stringOptional
or
string | nullableOptional
Responses
chevron-right
200

Success

application/json
patch
/groups/{groupId}

List All Groups

Call the GET /groups endpoint to see the groups on your account.

circle-exclamation
circle-info

This endpoint produces paginated results. You may need to make multiple queries to retrieve every group on your account.

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

Example Request

Successful response:

List Groups

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pagenumberOptional
pageSizenumberOptional
sortBystringOptional
sortDirectionstring · enumOptionalPossible values:
querystringOptional
Responses
chevron-right
200

Success

application/json
get
/groups

Manage Group Members

Subscribers can be added or deleted from your groups with the API endpoints documented below.

circle-info

If you need to add or delete many group members in a single request, see Groups Bulk Add/Delete Subscribers for bulk endpoints that can accept up to 1,000 records in a single request.

Add Subscriber to Group

To add a subscriber to a group, you need both the subscriberId and the groupId. The subscriberId is passed in the request body, and the groupId is specified as a path parameter.

Example request:

In the example below, we add subscriberId: 108767117 to groupId: 187561.

Successful response: {"message":"Added subscriber 108767117 to group 187561."}

circle-info

By default, when adding a subscriber to a group, the addToDripCampaigns field is set to true. Set this field to false if you don't want this subscriber included in drip campaigns.

Add Subscriber to Group

post

Required Fields: subscriberId

Note: Field addToDripCampaigns is true by default.

undefined

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupIdstringRequired
Body
subscriberIdnumberRequired
addToDripCampaignsbooleanOptional
Responses
chevron-right
200

Success

application/json
post
/groups/{groupId}/subscribers

Delete Group Member

Subscribers can be removed from a group by identifying them with the groupId and subscriberId in the path parameters to the DELETE /groups/{groupId}/subscribers/{subscriberId} endpoint.

Example request

In the example below, we delete subscriberId: 108767117 from groupId: 187561.

Successful Response: {"message":"Deleted subscriber 108767117 from group 187561."}

Remove Subscriber from Group

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupIdstringRequired
subscriberIdstringRequired
Responses
chevron-right
200

Success

application/json
delete
/groups/{groupId}/subscribers/{subscriberId}

Last updated

Was this helpful?