Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
    • Get templates list
    • Get template info
    • Delete template
    • Add template
    • Update template
    • Channel object
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Templates and fragments
  • Delete template
Documentation for version v74

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​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}
<xml>
<token>97</token>
<id>1</id>
</xml>

Response example​

  • JSON
  • XML
{
"data": 97,
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>97</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
dataintDeleted template ID
errorintError code
error_textstringError text
Last updated on Oct 9, 2023
Previous
Get template info
Next
Add template
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.