delete pronunciation dictionary
curl --request DELETE \
--url https://api.anam.ai/v1/pronunciation-dictionaries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.anam.ai/v1/pronunciation-dictionaries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.anam.ai/v1/pronunciation-dictionaries/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/pronunciation-dictionaries/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/pronunciation-dictionaries/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.anam.ai/v1/pronunciation-dictionaries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/pronunciation-dictionaries/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "Pronunciation dictionary is used by personas. Remove it from these personas in Lab, then archive it.",
"code": "DICTIONARY_ATTACHED",
"personaIds": [
"00000000-0000-0000-0000-000000000000"
]
}{
"error": "<string>",
"code": "REVISION_CONFLICT",
"personaIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}delete pronunciation dictionary
Archives a pronunciation dictionary. It disappears from the API and Lab, and sessions can no longer select it. Archiving is permanent: there is no way to unarchive a dictionary. Its entries and history are kept until your organization is deleted.
A dictionary that a persona uses can’t be archived: the response is 409 DICTIONARY_ATTACHED with the persona IDs. Remove the dictionary from those personas in Lab first.
DELETE
/
v1
/
pronunciation-dictionaries
/
{id}
delete pronunciation dictionary
curl --request DELETE \
--url https://api.anam.ai/v1/pronunciation-dictionaries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.anam.ai/v1/pronunciation-dictionaries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.anam.ai/v1/pronunciation-dictionaries/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/pronunciation-dictionaries/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/pronunciation-dictionaries/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.anam.ai/v1/pronunciation-dictionaries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/pronunciation-dictionaries/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "Pronunciation dictionary is used by personas. Remove it from these personas in Lab, then archive it.",
"code": "DICTIONARY_ATTACHED",
"personaIds": [
"00000000-0000-0000-0000-000000000000"
]
}{
"error": "<string>",
"code": "REVISION_CONFLICT",
"personaIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Pronunciation dictionary ID
Query Parameters
The revision you last read. When set, archive is rejected with 409 REVISION_CONFLICT if the dictionary has been saved since.
Required range:
x >= 1Response
Successfully archived pronunciation dictionary
Last modified on October 13, 2026
Was this page helpful?

