1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| Messages - Send Message
Send an sms to defined phone recipient
POST
http://www.phonebox.fr/api/send?key=API_KEY
Paramètre
Champ Type Description
phone string
Recipient mobile number, must satisfy E164 format
message string
Message to be sent to recipient
device int
ID of device where you want to send the message, default is automatic (Optional)
sim int
Sim slot number for sending message, if the slot is not available, default slot will be used. Default is "1" (Optional)
priority int
Send the message as priority (Optional)
Response Format
Champ Type Description
status int
Status code handler
200 = Success
500 = Fail
message string
Status response message
data array
Additional array of data
Success Example
{
"status": 200,
"message": "Message has been queued for sending on JFH4-CF",
"data": [
{
"name": "Johnny Sins", // recipient name
"phone": "+6391234567890" // recipient mobile number, E164 formatted
"slot": 1, // sim slot number
"device": 2, // id of the device used for sending
"timestamp": 1234567890123 // creation timestamp
}
]
}
Failed Example
{
"status": 400,
"message": "Something went wrong!",
"data": false
} |
Partager