Project
List Project Contact Groups
Retrieve the contact groups linked to the authenticated project
Endpoint
GET /api/project/contact-groupsExample
curl https://sms.lamah.com/api/project/contact-groups \
-H "Authorization: Bearer YOUR_API_TOKEN"Response
{
"data": [
{
"id": "0198faa2-8ddd-72c7-afce-32d980bd60fe",
"name": "Customers",
"description": "Active customer contacts",
"status": "active",
"reference": "customers"
}
]
}| Field | Type | Description |
|---|---|---|
data | array | Contact groups linked to the authenticated project |
data[].id | string (UUID) | Contact group identifier |
data[].name | string | Contact group name |
data[].description | string|null | Contact group description |
data[].status | string | Contact group status |
data[].reference | string|null | Optional external reference |
Groups are returned from newest to oldest. Use a group's id with the List Project Contacts or Send to Contact Group endpoint.
Error responses
401 Unauthorized
{ "message": "Invalid or missing token." }{ "message": "Unauthorized IP address." }