Project
List Project Contacts
Retrieve contacts from a specific contact group in the project
GET /api/project/contacts/{group_id}
| Field | Type | Description |
|---|
group_id | string (UUID) | The ID of the contact group |
| Field | Type | Required | Description |
|---|
page | integer | No | Page number (default: 1) |
per_page | integer | No | Results per page (default: 10) |
from | date | No | Filter contacts created on/after this date (YYYY-MM-DD) |
to | date | No | Filter contacts created on/before this date (YYYY-MM-DD) |
curl "https://sms.lamah.com/api/project/contacts/9db1f9a3-3b8e-4a7d-91d0-4c0ccf7c0b12?page=1&per_page=10" \
-H "Authorization: Bearer YOUR_API_TOKEN"
The response is wrapped in a data key containing a Laravel paginator object:
{
"data": {
"current_page": 1,
"data": [
{
"name": "أحمد محمد",
"phone": "00218912345678",
"sex": "male",
"birthdate": "1992-03-12T00:00:00Z",
"city": null
}
],
"per_page": 10,
"last_page": 2,
"total": 30
}
}
| Field | Type | Description |
|---|
data | object | Laravel paginator object |
| Field | Type | Description |
|---|
current_page | integer | Current page number |
per_page | integer | Results per page |
last_page | integer | Total number of pages |
total | integer | Total number of contacts in the group |
| Field | Type | Description |
|---|
name | string | Contact name |
phone | string | Phone number in international format |
sex | string | Gender if provided |
birthdate | string|null | Birthdate if provided (ISO 8601) |
city | string|null | City if provided |