Send Bulk Message
POST/messages/bulk
Endpoint for sending bulk messages.
Request
- application/json
Body
required
Send Bulk Message Request
Array of destination numbers.
Message content.
Date and time when the message will be sent (optional).
Validity period of the message in seconds (optional).
Responses
- 200
- 400
- 401
- 402
- 500
Bulk Messages sent successfully.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
status object
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
messages object[]
The id of the message.
The destination number of the message.
The message content.
The date and time when the message will be sent.
The date and time when the message was created.
The date and time when the message was delivered.
The validity period of the message.
{
"status": {
"message": "Status Message",
"error_code": 200,
"errors": []
},
"messages": [
{
"id": "1",
"dest_number": "628123456789",
"short_message": "Test Message",
"schedule_send_at": "2024-01-01 12:12:12",
"created_at": "2024-01-01 12:12:12",
"delivered_at": "2024-01-01 12:12:12",
"validity_period": 60
}
]
}
Failed to send bulk message.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}
Unauthorized. Invalid token.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}
Failed to send bulk message. Insufficient Balance.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}