Start Free — No Credit Card Required · IntelliReply AI now replies in Arabic and EnglishSee plans →

Contact groups API

List, create, rename and delete the contact groups you use to organize contacts and target campaigns.

Groups sort your contacts into lists, such as "VIP customers" or "Weekend regulars", that you can send campaigns to. A contact can be in several groups. To put contacts in a group, send its uuid in the group field when you create or upsert a contact.

The group object#

Group
{
  "uuid": "9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d",
  "name": "VIP customers",
  "created_at": "2026-10-03T14:20:11.000000Z",
  "updated_at": "2026-10-03T14:20:11.000000Z"
}

Group dates are ISO 8601 in UTC. Other fields in the response are internal.

List groups#

GEThttps://app.zapgen.ae/api/contact-groups

Returns your groups, paginated.

NameTypeRequiredDescription
pageintegerNoPage number, from 1.
per_pageintegerNoGroups per page, 1–100. Default 10.
curl "https://app.zapgen.ae/api/contact-groups?per_page=100" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "data": [
    {
      "uuid": "9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d",
      "name": "VIP customers",
      "created_at": "2026-10-03T14:20:11.000000Z",
      "updated_at": "2026-10-03T14:20:11.000000Z"
    }
  ],
  "links": { "first": "…", "last": "…", "prev": null, "next": null },
  "meta": { "current_page": 1, "last_page": 1, "per_page": 100, "total": 1 }
}

The list has no fixed order. If you have more groups than fit on one page, ask for per_page=100 so they arrive in one go.

Create a group#

POSThttps://app.zapgen.ae/api/contact-groups
NameTypeRequiredDescription
namestringYesThe group name. Must be different from your other groups' names.
curl -X POST https://app.zapgen.ae/api/contact-groups \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "name": "Weekend regulars" }'
Response
{
  "statusCode": 200,
  "id": "9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d",
  "message": "Request processed successfully"
}

id is the new group's uuid. A name you already use gives a 400 with "name": ["The name has already been taken."].

Rename a group#

PUThttps://app.zapgen.ae/api/contact-groups/{uuid}
NameTypeRequiredDescription
namestringYesThe new name. Must be different from your other groups' names.
curl -X PUT https://app.zapgen.ae/api/contact-groups/9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "name": "VIP customers 2026" }'

The response is the same as for creating a group. An unknown uuid returns 404 with Contact group not found.

Delete a group#

DELETEhttps://app.zapgen.ae/api/contact-groups/{uuid}

Deletes the group. Its contacts aren't deleted: they're only taken out of the group.

curl -X DELETE https://app.zapgen.ae/api/contact-groups/9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "statusCode": 200,
  "id": "9a3c1e7b-5d2f-4b8a-9c6e-1f0d2b3a4c5d",
  "message": "Request processed successfully"
}

An unknown or already deleted uuid returns 404 with Contact group not found.

Errors#

StatusWhen
400name is missing or already used by another group.
401The API key is missing or wrong.
403Your subscription has ended. Creating and renaming stops; listing and deleting still work.
404No group with that uuid in your organization.

Group changes send group.created, group.updated and group.deleted webhooks.

Still stuck?Our team answers on WhatsApp and at [email protected].
Ask us on WhatsApp