Create a Group
Create a new contact group in your address book. Groups (also referred to as mailing lists) can be used as recipients when sending batch, template, or campaign-based messages.
POST /addressbook/groups
Required Permission
create:GroupsYour API key must have this permission enabled in order to use this endpoint.
Example Request
curl --location 'https://<hostname>/addressbook/groups' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-urlencode 'name=test1'Replace YOUR_API_KEY with your API key.
Request Parameters
Body Parameters
Field
Type
Required
Description
name
string
Yes
Name of the contact group. Must be unique within your address book.
Responses
Success (HTTP 200)
Returned when the group is successfully created.
Validation Error (HTTP 400)
Returned when the request is invalid, such as when the group name is missing or already exists.
Last updated