Template
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
401
Unauthorized (missing/invalid API key)
500
Internal server error
get
/v1.0/sms/templateGET /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.
Authorizations
Body
namestringRequired
senderstring · min: 3 · max: 15Required
contentstring · max: 1000Required
Responses
200
Created successfully
application/json
400
Validation error
application/json
401
Unauthorized (missing/invalid API key)
500
Failed to create
application/json
post
/v1.0/sms/templatePOST /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.
Authorizations
Path parameters
idstring · uuidRequired
Template id
Body
namestringRequired
senderstring · min: 3 · max: 15Required
contentstring · max: 1000Required
Responses
200
Updated successfully
application/json
400
Validation error
application/json
401
Unauthorized (missing/invalid API key)
404
Template not found
500
Failed to update
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"
}
}
Authorizations
Path parameters
idstring · uuidRequired
Template id
Responses
200
Deleted (soft) successfully
application/json
401
Unauthorized (missing/invalid API key)
404
Template not found / already deleted
500
Failed to delete
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"
}
}