Send message

Send an SMS using a template

post

Provide the destination number to, and optional callback_url, plus all template parameters under params as additional JSON fields (all string values). Check the Templates API for fetching the template id.

Authorizations
Path parameters
idstring · uuidRequired

Template id

Body
tostringOptional

Destination MSISDN in international format (e.g., 44...)

callback_urlstring · uri | nullableOptional
Responses
200

Accepted or rejected by business validation

application/json
post
/v1.0/sms/template/{id}/send
POST /v1.0/sms/template/{id}/send HTTP/1.1
Host: messaging-api.bind.hr
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 135

{
  "to": "4473481234567",
  "callback_url": "https://mystore.com/api/sms/dlr",
  "params": {
    "customerName": "John Doe",
    "orderId": "ORD-2023-12345"
  }
}
{
  "status": "ACCEPTED",
  "message_id": "b2c3d4e5-f6a1-41d4-a716-112233445566",
  "error_message": "OK"
}