Delete BYOK Key
curl --request DELETE \
--url https://app.thinnest.ai/api/v1/byok/credentials/{kind} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/byok/credentials/{kind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/byok/credentials/{kind}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"removed": "tts"
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "This API key is read-only: it can read everything but change nothing."
}{
"error": "No tts key is set."
}{
"error": "Turn BYOK off before removing a key — or replace the key instead."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Bring your own keys
Delete BYOK Key
Removes your key for one job. Refused while BYOK is on, since a workspace on its own keys always has all three — turn BYOK off first, or replace the key with Add BYOK Key. Needs a full key.
DELETE
/
byok
/
credentials
/
{kind}
Delete BYOK Key
curl --request DELETE \
--url https://app.thinnest.ai/api/v1/byok/credentials/{kind} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/byok/credentials/{kind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/byok/credentials/{kind}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"removed": "tts"
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "This API key is read-only: it can read everything but change nothing."
}{
"error": "No tts key is set."
}{
"error": "Turn BYOK off before removing a key — or replace the key instead."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
Which key: stt (speech-to-text), llm or tts (voice).
Available options:
stt, llm, tts Response
Removed.
The job whose key was removed.
Available options:
stt, llm, tts