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
curl \
--request POST 'https://api.sierrahive.com/v1/messages/sms' \
--user "username:password" \
--header "Content-Type: application/json" \
--header "X-Wallet: Token 333" \
--data '{"From":"MyCompany","To":"23230123456","Content":"hello customer","Reference":"my_reference_1","CallbackUrl":"http://mycompany.com/sms/callback"}'
Request examples
# Headers
X-Wallet: Token 333
# Payload
{
"From": "MyCompany",
"To": "23230123456",
"Content": "hello customer",
"Reference": "my_reference_1",
"CallbackUrl": "http://mycompany.com/sms/callback"
}
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"
}