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.
With this API, you can calculate price before sending.
{
"phoneNumbers": [
"+18181111112",
"+18181111113",
"+18181111114",
"+18181111115"
],
"text": "Hello. Message sent by Boolky.",
"photos": "(binary)"
}
Variable | Type | Validation | Required | Info |
---|---|---|---|---|
text | string | Min 1, Max 650 characters | true | Text what you want to sent. |
phoneNumbers | string[] | Min 1 Number | true | Phone numbers to sent. |
photos | file[] | Min 1, Max 10 Photos | true | Sent mms Photos |
groupIds | int[] | null | false | Sent messages via groupIds, (Advanced). |
contactIds | int[] | null | false | Sent messages via contactIds, (Advanced). |
If everything went well, you can find in the fields
cost, totalPartCount, receiverCount, text
{
"result": {
"data": {
"cost": 0.152,
"totalPartCount": 4,
"receiverCount": 4,
"text": "Hello. Message sent by Boolky."
},
"message": {
"localizedMessage": "Successfully sent cost: $0.16",
"messageKey": "success"
}
}
}
An error response can be obtained if you have the wrong api key
{
"error": {
"localizedMessage": "Session Expired",
"messageKey": "sessionExpired"
}
}