Skip to main content

Delete template

Description

Deletes a message template.

Request URL

Method: POST

https://example.com/api/v1.1/templates/delete

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint1YesTemplate ID
formatstring"json"NoResponse data format
By default– json

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}

Response example

{
"data": 97,
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
dataintDeleted template ID
errorintError code
error_textstringError text