Template
Returns client-specific templates (optionally filtered by status) plus common approved templates.
API key header. Source IP is optionally provided via X-FORWARDED-FOR.
Optional status filter (e.g. approved, for_review).
Successful response
Unauthorized (missing/invalid API key)
Internal server error
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 a new template.
API key header. Source IP is optionally provided via X-FORWARDED-FOR.
Created successfully
Validation error
Unauthorized (missing/invalid API key)
Failed to create
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 an existing template.
API key header. Source IP is optionally provided via X-FORWARDED-FOR.
Template id
Updated successfully
Validation error
Unauthorized (missing/invalid API key)
Template not found
Failed to update
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"
}
}API key header. Source IP is optionally provided via X-FORWARDED-FOR.
Template id
Deleted (soft) successfully
Unauthorized (missing/invalid API key)
Template not found / already deleted
Failed to delete
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"
}
}
