POST /v1/messaging/templates
Service: messaging · operationId: (none)
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"brand_id": {
"type": "string",
"minLength": 1
},
"key": {
"type": "string",
"minLength": 1
},
"channel": {
"type": "string",
"enum": [
"email",
"sms",
"push",
"in_app"
]
},
"description": {
"type": "string"
}
},
"required": [
"brand_id",
"key",
"channel"
]
}Responses
201 Created
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"brand_id": {
"type": "string"
},
"key": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"channel": {
"type": "string",
"enum": [
"email",
"sms",
"push",
"in_app"
]
},
"current_version_id": {
"type": [
"string",
"null"
]
},
"created_by": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"brand_id",
"key",
"description",
"channel",
"current_version_id",
"created_by",
"created_at",
"updated_at"
]
}400 Validation
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"error",
"message"
]
}500 Server error
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"error",
"message"
]
}Example
curl -X POST https://messaging.platform.loop.health/v1/messaging/templates \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/messaging— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced