Delete call attempt
curl --request DELETE \
--url https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}', 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.instaview.sk/conversations/{id}/call-attempts/{attemptId}",
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.instaview.sk/conversations/{id}/call-attempts/{attemptId}"
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.instaview.sk/conversations/{id}/call-attempts/{attemptId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}")
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_bodyConversations
Delete Call Attempt
Cancels and deletes a specific call attempt. Blocked for ONLINE conversations.
DELETE
/
conversations
/
{id}
/
call-attempts
/
{attemptId}
Delete call attempt
curl --request DELETE \
--url https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}', 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.instaview.sk/conversations/{id}/call-attempts/{attemptId}",
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.instaview.sk/conversations/{id}/call-attempts/{attemptId}"
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.instaview.sk/conversations/{id}/call-attempts/{attemptId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.instaview.sk/conversations/{id}/call-attempts/{attemptId}")
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_bodyDELETE /interviews/{id}/call-attempts/{attemptId} is a permanent alias of this endpoint and keeps working unchanged, with the same scopes and the same response. See Resource names.ONLINE conversations: managing individual call attempts is forbidden on an
ONLINE conversation.Overview
Deleting a call attempt removes it from the conversation’s history, and cancels it if it was scheduled for the future.Constraints
- In-progress protection: as with rescheduling, deleting an attempt that is
IN_PROGRESSis blocked. - The conversation survives: deleting attempts does not delete the conversation. To remove the conversation and all its data, use Delete Conversation.
Use case: clearing failed or redundant attempts out of a conversation’s history, or cancelling a pending retry that is no longer wanted.
Webhooks
This endpoint emits no webhook. It cancels a single call attempt without changing the conversation’s own status, so no conversation-level lifecycle event applies — in particular, noconversation.cancelled is sent.
Deleting the last remaining scheduled attempt leaves the conversation
SCHEDULED with no
future call queued, and emits no event. If your system treats a conversation as open until a
terminal event arrives, either follow this call with Delete
Conversation, or schedule a replacement with
Invoke New Call Attempt.Authorizations
API key for authentication using Bearer scheme
Query Parameters
Required for ATS API keys to specify which company to access. Ignored for standard company API keys.
Response
204
Call attempt deleted successfully