Template

List

get

Returns client-specific templates (optionally filtered by status) plus common approved templates.

Authorizations
Query parameters
statusstringOptional

Optional status filter (e.g. approved, for_review).

Responses
200

Successful response

application/json
Responseany
get
/v1.0/sms/template
GET /v1.0/sms/template HTTP/1.1
Host: messaging-api.bind.hr
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "items": [
    {
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "name": "Order Confirmation",
      "sender": "MyStore",
      "content": "Hi #{customerName}, your order #{orderId} is confirmed and will be shipped soon.",
      "status": "approved",
      "type": "client"
    }
  ]
}

Create

post

Create a new template.

Authorizations
Body
namestringRequired
senderstring · min: 3 · max: 15Required
contentstring · max: 1000Required
Responses
200

Created successfully

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

{
  "name": "Shipping Notification",
  "sender": "MyStore",
  "content": "Good news! Your order #{orderId} has been shipped and is on its way. Track it here: #{tracking_url}"
}
{
  "success": true,
  "item": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "sender": "text",
    "content": "text",
    "status": "text"
  }
}

Update

put

Update an existing template.

Authorizations
Path parameters
idstring · uuidRequired

Template id

Body
namestringRequired
senderstring · min: 3 · max: 15Required
contentstring · max: 1000Required
Responses
200

Updated successfully

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

{
  "name": "Shipping Notification",
  "sender": "MyStore",
  "content": "Good news! Your order #{orderId} has been shipped and is on its way. Track it here: #{tracking_url}"
}
{
  "success": true,
  "item": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "sender": "text",
    "content": "text",
    "status": "text"
  }
}

Delete

delete
Authorizations
Path parameters
idstring · uuidRequired

Template id

Responses
200

Deleted (soft) successfully

application/json
delete
/v1.0/sms/template/{id}
DELETE /v1.0/sms/template/{id} HTTP/1.1
Host: messaging-api.bind.hr
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "item": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "sender": "text",
    "content": "text",
    "status": "text"
  }
}