curl -X POST "https://api.alex.com/v2/handoffs/3b7e1d5a-9c2f-4e8b-a6d0-5f1c3e7a9b2d/cancel" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"import requests
url = "https://api.alex.com/v2/handoffs/{id}/cancel"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.alex.com/v2/handoffs/{id}/cancel', 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.alex.com/v2/handoffs/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
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.alex.com/v2/handoffs/{id}/cancel"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", 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.post("https://api.alex.com/v2/handoffs/{id}/cancel")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/handoffs/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"object": "handoff",
"id": "3b7e1d5a-9c2f-4e8b-a6d0-5f1c3e7a9b2d",
"application_id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"status": "cancelled",
"scheduled_at": "2026-12-03T16:00:00.000Z",
"meeting_url": null,
"interviewer_user_ids": [
"u7f3a9c1-2b4d-4e6f-8a0c-1e3b5d7f9a2c"
],
"missed_reason": null,
"created_at": "2026-11-28T09:30:00.000Z",
"updated_at": "2026-11-30T14:05:12.000Z"
}Cancel a handoff
Cancels the handoff’s interview, as the dashboard’s Cancel Interview does: its workflows stop, its scheduled calls are cancelled, the interview session closes, the handoff is cancelled (a booked meeting comes off the recruiter’s calendar and the candidate is told), and the candidate’s Activity thread records that the API cancelled it. Emits handoff.cancelled.
Answers with the handoff as it now is. A meeting that completed or was booked in the moment before the cancel landed keeps that status, so check status: it can be completed or scheduled. An already cancelled handoff answers 200, and sending the request again is safe.
curl -X POST "https://api.alex.com/v2/handoffs/3b7e1d5a-9c2f-4e8b-a6d0-5f1c3e7a9b2d/cancel" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"import requests
url = "https://api.alex.com/v2/handoffs/{id}/cancel"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.alex.com/v2/handoffs/{id}/cancel', 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.alex.com/v2/handoffs/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
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.alex.com/v2/handoffs/{id}/cancel"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", 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.post("https://api.alex.com/v2/handoffs/{id}/cancel")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/handoffs/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"object": "handoff",
"id": "3b7e1d5a-9c2f-4e8b-a6d0-5f1c3e7a9b2d",
"application_id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"status": "cancelled",
"scheduled_at": "2026-12-03T16:00:00.000Z",
"meeting_url": null,
"interviewer_user_ids": [
"u7f3a9c1-2b4d-4e6f-8a0c-1e3b5d7f9a2c"
],
"missed_reason": null,
"created_at": "2026-11-28T09:30:00.000Z",
"updated_at": "2026-11-30T14:05:12.000Z"
}What a cancel does
Cancelling a handoff cancels its interview, the same way the dashboard’s Cancel Interview does:- The interview’s workflows stop and its scheduled calls are cancelled.
- The interview session closes as cancelled.
- The handoff is cancelled. A booked meeting comes off the recruiter’s calendar and the candidate is told.
- The candidate’s Activity thread records that the API cancelled it.
handoff.cancelled is emitted when the handoff’s status changes.
Reading the response
The response is the handoff as it now is. If the meeting completed, or the candidate booked it, in the moment before the cancel landed, the handoff keeps that status: checkstatus rather than assuming cancelled.
| Handoff status before | Result |
|---|---|
pending, scheduled | 200, cancelled. |
cancelled | 200, unchanged. Repeating is safe. |
completed, missed | 409 handoff_not_cancellable. Nothing changes. |
500 handoff_cancel_failed means the interview was cancelled but the handoff’s own cancel failed. Send the request again: only the handoff’s cancel runs.
The body must be empty or {}.Authorizations
Headers
A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.
1 - 255Body
No fields. Send no body, or {}.
Response
The handoff, after the cancel.
A human interview round's hand-off of the candidate to a recruiter for a meeting.