Sending an SMS
SMS
POST https://api.opentact.org/rest/sms
This will send an SMS.
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
JWT or Bearer
Request Body
Name
Type
Description
to
string
>=3
tn
integer
telephone number entity
message
string
[1 .. 918] characters
custom_callback_url
string
[ 10 .. 255 ] characters URL override for messaging profile callback url's
{
"success": true,
"payload": {
"created_on": "2019-08-24T14:15:22Z",
"modified_on": "2019-08-24T14:15:22Z",
"uuid": "string",
"tn": {},
"to": "string",
"thread": "string",
"message": "string",
"reference_id": "string",
"state": "created",
"delivered": true,
"automated": true,
"custom_callback_url": "string",
"account": {},
"created_by": {}
}
}{
"success": true,
"payload": {
"to": "J Smith",
"message": "test message",
"custom_callback_url": "www.example.com",
"state": "created",
"uuid": "6f837aa1-f6aa-45af-9764-3c4bfa84098f",
"thread": "fdbbf3c163f386c272ed1b75a1d898bf",
"delivered": false,
"reference_id": null,
"created_on": "2020-10-27T16:33:05.928Z",
"modified_on": "2020-10-27T16:33:05.928Z",
"automated": false
}
}Code Example
Last updated
Was this helpful?