Get Contact List
This request is used to retrieve the list of contacts in a group
URL
POST
https://api.smspartner.fr/v1/contact/list
Parameters
Name
Value
apiKey
groupId
The ID of the contact group
Request
{
"curlCommand": {
"location": true,
"request": "GET",
"url": "https://api.smspartner.fr/v1/group/list?apiKey=YOUR_API_KEY&groupId=group_id"
}
}
Response
{
"success": true,
"code": 200,
"currentPage": 1,
"total": "2",
"datas": [
{
"contactId": "ID_CONTACT",
"phone": "+33XXXXXXXXX",
"firstname": "Michel",
"lastname": "Dupont",
"url": "",
"shortUrl": "",
"date": "",
"custom1": "",
"custom2": "",
"custom3": "",
"custom4": "",
"createdAt": "2025-03-12T13:49:22+01:00",
"stopSms": false
},
{
"contactId": "ID_CONTACT",
"phone": "+33XXXXXXXXX",
"firstname": "Marie",
"lastname": "Bertrand",
"url": "",
"shortUrl": "",
"date": "",
"custom1": "",
"custom2": "",
"custom3": "",
"custom4": "",
"createdAt": "2025-03-12T14:33:55+01:00",
"stopSms": false
}
]
}
Errors
{
"success": false,
"code": 10,
"message": "Invalid API key"
}
Error Codes
Response Code
Message
1
groupId is required
10
API key is required
Last updated