Send Template Message
POST/messages
Sending Template Message: Send a message using a predefined template.
Request
- application/json
Body
required
- Send Template Message
- Array [
- ]
oneOf
device stringrequired
receiver stringrequired
type stringrequired
params objectrequired
text stringrequired
footer stringrequired
viewOnce booleanrequired
templateButtons object[]required
index int32required
urlButton object
displayText stringrequired
url stringrequired
callButton object
displayText stringrequired
phoneNumber stringrequired
quickReplyButton object
displayText stringrequired
url stringrequired
simulate_typing int32required
Responses
- 200
- 403
- 404
- 422
General Success Response
- application/json
- Schema
- Example (from schema)
Schema
status integer
HTTP Status Code
message string
HTTP Status Message
{
"status": 200,
"message": "Ok"
}
General Forbidden Error Response
- application/json
- Schema
- Example (from schema)
Schema
status integer
Forbidden
message string
HTTP Status Message
{
"status": 403,
"message": "Forbidden"
}
General Not Found Error Response
- application/json
- Schema
- Example (from schema)
Schema
status integer
Not Found
message string
HTTP Status Message
{
"status": 404,
"message": "Not Found"
}
General Validation Error Response
- application/json
- Schema
- Example (from schema)
Schema
status integer
HTTP Status Code
message string
HTTP Status Message
errors string[]
{
"status": 422,
"message": "Validation Error ",
"errors": [
"string"
]
}
Loading...