With the Boolky API you can integrate a number of functions, such as sending a message to both existing contacts and new ones, you can calculate how much it will cost before sending. You can add a contact whenever you have a new user. You can integrate all the functionality that we have, if some functionality is not enough or you have problems with integration, write to the support service and we will solve this issue as soon as possible.
This endpoint is returning the list of groups you saved in our system previously. If you don't have groups the return data is an empty array.
If everything went well, you can find groups field[]. Single group have this fields - id, customerId, name, position, notValid,contacts[].Single contact have this fields - id,name, phone, gender, mail.
{
"result": {
"data": {
"groups": [
{
"id": 583,
"customerId": 7,
"name": "Group 1 Name",
"position": 1,
"notValid": 0,
"contacts": [
{
"id": 5817738,
"name": "East Dumpling",
"phone": "+12122192268"
},
{
"id": 5817739,
"name": "Pita Grill",
"phone": "+12127172005"
}
]
},
{
"id": 586,
"customerId": 7,
"name": "Invalid",
"position": 4,
"notValid": 1,
"contacts": [
{
"id": 5817761,
"name": "East Dumpling",
"phone": "+12122192268",
"mail": "[email protected]",
"gender": 1
},
{
"id": 5817763,
"name": "Pita Grill",
"phone": "+12127172005",
"mail": "[email protected]",
"gender": 1
}
]
}
],
"allContacts": [
{
"id": 5817738,
"name": "East Dumpling",
"phone": "+12122192268"
},
{
"id": 5817739,
"name": "Pita Grill",
"phone": "+12127172005"
}
]
}
}
}
An error response can be obtained if you have the wrong api key
{
"error": {
"localizedMessage": "Session expired",
"messageKey": "sessionExpired"
}
}