sms.template.delete
curl --request POST \
--url https://platform.trylath.com/sms/template/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"locale": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', locale: '<string>'})
};
fetch('https://platform.trylath.com/sms/template/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/sms/template/delete"
payload = {
"name": "<string>",
"locale": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/sms/template/delete"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"name": "<string>",
"locale": "<string>",
"deleted": true,
"revertedToDefault": true
}
}sms.template.delete
Removes an SMS template. Without a locale it removes every language variant; with one it removes only that translation and the others keep sending. A reserved name reverts to the built-in text rather than disappearing, since the message it carries still has to be sent. Versions already used by messages are kept; only the template stops being resolvable.
POST
/
sms
/
template
/
delete
sms.template.delete
curl --request POST \
--url https://platform.trylath.com/sms/template/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"locale": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', locale: '<string>'})
};
fetch('https://platform.trylath.com/sms/template/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/sms/template/delete"
payload = {
"name": "<string>",
"locale": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/sms/template/delete"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"name": "<string>",
"locale": "<string>",
"deleted": true,
"revertedToDefault": true
}
}Authorizations
A Lath API key: lath_live_sk… or lath_test_sk… on a server, lath_live_pk… or lath_test_pk… in a browser.
Headers
Replays the stored response for the same key and input; refuses different input.
Body
application/json
The template name. The reserved name auth.signin.sms overrides the built-in sign-in text.
Required string length:
1 - 120Pattern:
^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*$Remove only this language variant. Omit to remove every variant of the template.
Maximum string length:
20Last modified on September 13, 2026
Was this page helpful?

