Delete a dialer
curl --request DELETE \
--url https://api.qcall.ai/api/v1/dialer/delete \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "87c30c44-8561-4db7-852a-6cc1b4e16f88",
"dialer_type": "sip",
"sip_inbound_trunk_id": "ST_qQdA87qTWr9z",
"sip_outbound_trunk_id": "ST_p8cyrfk6QMWf",
"sip_trunk_id": "SDR_eSSPvcvuUU45"
}
'import requests
url = "https://api.qcall.ai/api/v1/dialer/delete"
payload = {
"id": "87c30c44-8561-4db7-852a-6cc1b4e16f88",
"dialer_type": "sip",
"sip_inbound_trunk_id": "ST_qQdA87qTWr9z",
"sip_outbound_trunk_id": "ST_p8cyrfk6QMWf",
"sip_trunk_id": "SDR_eSSPvcvuUU45"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '87c30c44-8561-4db7-852a-6cc1b4e16f88',
dialer_type: 'sip',
sip_inbound_trunk_id: 'ST_qQdA87qTWr9z',
sip_outbound_trunk_id: 'ST_p8cyrfk6QMWf',
sip_trunk_id: 'SDR_eSSPvcvuUU45'
})
};
fetch('https://api.qcall.ai/api/v1/dialer/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.qcall.ai/api/v1/dialer/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'id' => '87c30c44-8561-4db7-852a-6cc1b4e16f88',
'dialer_type' => 'sip',
'sip_inbound_trunk_id' => 'ST_qQdA87qTWr9z',
'sip_outbound_trunk_id' => 'ST_p8cyrfk6QMWf',
'sip_trunk_id' => 'SDR_eSSPvcvuUU45'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qcall.ai/api/v1/dialer/delete"
payload := strings.NewReader("{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.delete("https://api.qcall.ai/api/v1/dialer/delete")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qcall.ai/api/v1/dialer/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Dialers
Delete Dialer
Deletes a single dialer. For SIP dialers, the associated LiveKit resources (inbound trunk, outbound trunk, dispatch rule) are also torn down. The dialer cannot be deleted while it is assigned to an active campaign.
DELETE
/
dialer
/
delete
Delete a dialer
curl --request DELETE \
--url https://api.qcall.ai/api/v1/dialer/delete \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "87c30c44-8561-4db7-852a-6cc1b4e16f88",
"dialer_type": "sip",
"sip_inbound_trunk_id": "ST_qQdA87qTWr9z",
"sip_outbound_trunk_id": "ST_p8cyrfk6QMWf",
"sip_trunk_id": "SDR_eSSPvcvuUU45"
}
'import requests
url = "https://api.qcall.ai/api/v1/dialer/delete"
payload = {
"id": "87c30c44-8561-4db7-852a-6cc1b4e16f88",
"dialer_type": "sip",
"sip_inbound_trunk_id": "ST_qQdA87qTWr9z",
"sip_outbound_trunk_id": "ST_p8cyrfk6QMWf",
"sip_trunk_id": "SDR_eSSPvcvuUU45"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '87c30c44-8561-4db7-852a-6cc1b4e16f88',
dialer_type: 'sip',
sip_inbound_trunk_id: 'ST_qQdA87qTWr9z',
sip_outbound_trunk_id: 'ST_p8cyrfk6QMWf',
sip_trunk_id: 'SDR_eSSPvcvuUU45'
})
};
fetch('https://api.qcall.ai/api/v1/dialer/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.qcall.ai/api/v1/dialer/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'id' => '87c30c44-8561-4db7-852a-6cc1b4e16f88',
'dialer_type' => 'sip',
'sip_inbound_trunk_id' => 'ST_qQdA87qTWr9z',
'sip_outbound_trunk_id' => 'ST_p8cyrfk6QMWf',
'sip_trunk_id' => 'SDR_eSSPvcvuUU45'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qcall.ai/api/v1/dialer/delete"
payload := strings.NewReader("{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.delete("https://api.qcall.ai/api/v1/dialer/delete")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qcall.ai/api/v1/dialer/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"87c30c44-8561-4db7-852a-6cc1b4e16f88\",\n \"dialer_type\": \"sip\",\n \"sip_inbound_trunk_id\": \"ST_qQdA87qTWr9z\",\n \"sip_outbound_trunk_id\": \"ST_p8cyrfk6QMWf\",\n \"sip_trunk_id\": \"SDR_eSSPvcvuUU45\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Body
application/json
Dialer to delete

