Sends one message to many recipients. Uses Basic auth (clientid:clientsecret) and requires X-Wallet header containing the wallet token. Request is asynchronous; final status is delivered to CallbackUrl if provided.
POST
/v1/messages/sms/bulk/otm
curl \
--request POST 'https://api.sierrahive.com/v1/messages/sms/bulk/otm' \
--user "username:password" \
--header "Content-Type: application/json" \
--header "X-Wallet: Token 333" \
--data '{"From":"MyCompany","Content":"hello customer","CallbackUrl":"http://mycompany.com/sms/callback","Recipients":[{"To":"23230123456","Reference":"ref_1"}]}'
Request examples
# Headers
X-Wallet: Token 333
# Payload
{
"From": "MyCompany",
"Content": "hello customer",
"CallbackUrl": "http://mycompany.com/sms/callback",
"Recipients": [
{
"To": "23230123456",
"Reference": "ref_1"
}
]
}
Response examples (200)
[
{
"Cost": 0.0,
"Destination": "23230123456",
"Id": "5f6f9a96-d766-4787-ba08-1fa0939b7166",
"Ticket": "5f6f9a96-d766-4787-ba08-1fa0939b7166",
"ClientReference": "my_reference_1",
"Status": "pending"
}
]