Skip to content

Delete template

DELETE /api/templates/delete

Deletes a template by name (all translations) or by hsm_id (a single one). Requires the templates:manage scope.

FieldTypeDescription
channel_idstringrequiredchannel_id of the channel (nk_ prefix). Example: "nk_dvzobn7m4h4y".
template_namestringrequiredName of the template to delete. Example: "bienvenida".
hsm_idstringoptionalId of a specific translation (hsm_id). If omitted, all are deleted. Example: "123456789".
StatusDescriptionSchema
200—DeleteTemplateResponseDto
Terminal window
curl -X DELETE https://api.neike.dev/api/templates/delete \
-H "x-neike-api-key: whk_live_…" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "nk_dvzobn7m4h4y",
"template_name": "bienvenida"
}'
FieldTypeDescription
successbooleanrequiredExample: true.
status_codenumberrequiredExample: 200.