Delete Encrypted Key
curl --request POST \
--url https://api.bland.ai/v1/accounts/delete \
--header 'authorization: <authorization>' \
--header 'encrypted_key: <encrypted_key>'import requests
url = "https://api.bland.ai/v1/accounts/delete"
headers = {
"authorization": "<authorization>",
"encrypted_key": "<encrypted_key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {authorization: '<authorization>', encrypted_key: '<encrypted_key>'}
};
fetch('https://api.bland.ai/v1/accounts/delete', 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.bland.ai/v1/accounts/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"encrypted_key: <encrypted_key>"
],
]);
$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.bland.ai/v1/accounts/delete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("encrypted_key", "<encrypted_key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bland.ai/v1/accounts/delete")
.header("authorization", "<authorization>")
.header("encrypted_key", "<encrypted_key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/accounts/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["encrypted_key"] = '<encrypted_key>'
response = http.request(request)
puts response.read_body{
"status": "success"
}
Custom Twilio Accounts
Delete Encrypted Key
Disable an encrypted key for a Twilio account integration. See Custom Twilio Integration for more information.
POST
/
v1
/
accounts
/
delete
Delete Encrypted Key
curl --request POST \
--url https://api.bland.ai/v1/accounts/delete \
--header 'authorization: <authorization>' \
--header 'encrypted_key: <encrypted_key>'import requests
url = "https://api.bland.ai/v1/accounts/delete"
headers = {
"authorization": "<authorization>",
"encrypted_key": "<encrypted_key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {authorization: '<authorization>', encrypted_key: '<encrypted_key>'}
};
fetch('https://api.bland.ai/v1/accounts/delete', 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.bland.ai/v1/accounts/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"encrypted_key: <encrypted_key>"
],
]);
$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.bland.ai/v1/accounts/delete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("encrypted_key", "<encrypted_key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bland.ai/v1/accounts/delete")
.header("authorization", "<authorization>")
.header("encrypted_key", "<encrypted_key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/accounts/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["encrypted_key"] = '<encrypted_key>'
response = http.request(request)
puts response.read_body{
"status": "success"
}
Headers
string
required
Your API key for authentication.
Response
The status of the request.
success- The encrypted key was successfully deleted.error- There was an error deleting the encrypted key.
Special messages:
Error deleting Twilio credentials- The encrypted key could not be deleted or already has been deleted.Missing encrypted key- Theencrypted_keyparameter is missing.- none - The encrypted key was successfully deleted.
{
"status": "success"
}
Docs for agents: llms.txt
Was this page helpful?
⌘I