Send batch messages
Last updated
Last updated
Let's establish some of our data that will be used in the following examples:
Workspace ID: a1405560-c8d3-4b1a-877d-3f449ad95352
AccessKey: abcd
Channel ID: a1405560-c8d3-4b1a-877d-3f449ad95352
In this example, we're sending multiple SMS messages to different receivers using variations of content.
Batch messages can be monitored using endpoints by providing the batchID returned in the response. This allows you to check if any messages within the batch failed. Messages with a rejected status will emit events, containing detailed , enabling you to identify and address issues efficiently. For more details on how to subscribe to these events, refer to the documentation.
The send batch messages endpoint allows sending a batch up to 100 messages to a channel. The messages are accepted for validation and processed asynchronously. Messages that fail validation are rejected, and the failure is attached to the message. The response will return a batch ID which can be used to retrieve the messages that were in the batch.
The ID of the workspace
The ID for a channel
Messages were accepted to be validated asynchronously and then processed.
The ID of the batch.
"a1405560-c8d3-4b1a-877d-3f449ad95352"