BIND
1

Send a message

Every request carries your API key as a bearer token: Authorization: Bearer <your-api-key>.

A message is a POST to /v1/messages with a list of channels. With one entry, we send on that channel only. Pick the channel and the kind of message above the request.

SMS sends one of your approved templates: template.id is the template's UUID from the portal, and template.params holds one string per #{token} in its text. Each value is checked against its variable's type, and an empty one takes the variable's fallback. Sending without a template is also possible: content with the text in place of template, never both. We turn it on for your account on request; until then, free text is a 403 TEMPLATES_ONLY.

WhatsApp names one of your connected numbers in profile_number_id. A message that starts a conversation is always one of your approved templates, by name and language. Free text goes out only within 24 hours of the recipient's last message to that number.

Viber names its sender profile in profile_id, as SMS does, and sends text, an image, a video or a file, with an optional button.

We answer 202 Accepted: the message is queued, and the outcome arrives later in the delivery report. A refused value is a 400 VALIDATION_FAILED with the reason in errors[].error, such as contains_link or is_required.

Request

curl -X POST "https://channels.bind.hr/v1/messages" \
  -H "Authorization: Bearer $BIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channels": [
      {
        "channel": "sms",
        "profile_id": "b3d9e7a1-5c24-4f38-8e6b-9a0c1d2e3f45",
        "to": "385991234567",
        "template": {
          "id": "7c1e9a52-4b0d-4f3e-9a61-2d8f5c0b3e17",
          "params": {
            "customer_name": "Ana",
            "order_number": "#1042",
            "order_total": "39,80 €",
            "tracking_url": ""
          }
        }
      }
    ]
  }'

template instead of content: the template's UUID and a string per variable. tracking_url is empty, so its fallback is sent; order_total is not in this template's text, so it is ignored.

Ready to send your first message?

We set up your account, sender profiles and API key with you, and help you through the first integration.

Bind console showing an SMS profile going live