cURL
curl -X PATCH "https://api.alex.com/v2/applications/e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"stage_id": "s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a",
"rejection_reason": "Role filled"
}'import requests
url = "https://api.alex.com/v2/applications/{id}"
payload = {
"stage_id": "s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a",
"rejection_reason": "Role filled"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stage_id: 's4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a',
rejection_reason: 'Role filled'
})
};
fetch('https://api.alex.com/v2/applications/{id}', 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/applications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'stage_id' => 's4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a',
'rejection_reason' => 'Role filled'
]),
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/applications/{id}"
payload := strings.NewReader("{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.alex.com/v2/applications/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/applications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}"
response = http.request(request)
puts response.read_body{
"object": "application",
"id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"candidate_id": "5d2c7a90-1f4e-4b6a-8c3d-9e0f1a2b3c4d",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_id": "SUB-55012",
"stage": {
"id": "s9e8d7c6-b5a4-4321-8fed-cba987654321",
"label": "Screening",
"category": "in_progress"
},
"current_round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"rounds": [
{
"round": {
"id": "r1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"number": 1,
"type": "alex_interview"
},
"status": "advanced",
"interview_id": "c41e9d27-6a0b-4f3e-8d15-7b2a9c0e4f68",
"score": 86,
"handoff_status": null,
"scheduled_at": null
},
{
"round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"status": "invited",
"interview_id": "a2d4f6b8-1c3e-4a5b-9d7f-0e2c4a6b8d1f",
"score": null,
"handoff_status": "scheduled",
"scheduled_at": "2026-12-03T16:00:00.000Z"
}
],
"rejection_reason": null,
"rejected_at": null,
"withdrawn": false,
"custom_fields": {
"source_channel": "Referral"
},
"created_at": "2026-11-28T09:30:00.000Z",
"updated_at": "2026-11-30T14:05:12.000Z"
}Applications
Update an application
Moves an application to another stage, as the dashboard does: Alex stops and fires what the stage’s category calls for, sends the move to your ATS, records it on the candidate’s Activity thread, and emits application.stage_changed. A rejection_reason with a complete_unsuccessful stage records why; alone, it replaces the reason of an application already in such a stage.
PATCH
/
applications
/
{id}
cURL
curl -X PATCH "https://api.alex.com/v2/applications/e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"stage_id": "s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a",
"rejection_reason": "Role filled"
}'import requests
url = "https://api.alex.com/v2/applications/{id}"
payload = {
"stage_id": "s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a",
"rejection_reason": "Role filled"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stage_id: 's4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a',
rejection_reason: 'Role filled'
})
};
fetch('https://api.alex.com/v2/applications/{id}', 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/applications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'stage_id' => 's4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a',
'rejection_reason' => 'Role filled'
]),
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/applications/{id}"
payload := strings.NewReader("{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.alex.com/v2/applications/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/applications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stage_id\": \"s4d6f8a0-2c4e-4a6c-8e0a-2c4e6a8c0e2a\",\n \"rejection_reason\": \"Role filled\"\n}"
response = http.request(request)
puts response.read_body{
"object": "application",
"id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"candidate_id": "5d2c7a90-1f4e-4b6a-8c3d-9e0f1a2b3c4d",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_id": "SUB-55012",
"stage": {
"id": "s9e8d7c6-b5a4-4321-8fed-cba987654321",
"label": "Screening",
"category": "in_progress"
},
"current_round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"rounds": [
{
"round": {
"id": "r1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"number": 1,
"type": "alex_interview"
},
"status": "advanced",
"interview_id": "c41e9d27-6a0b-4f3e-8d15-7b2a9c0e4f68",
"score": 86,
"handoff_status": null,
"scheduled_at": null
},
{
"round": {
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview"
},
"status": "invited",
"interview_id": "a2d4f6b8-1c3e-4a5b-9d7f-0e2c4a6b8d1f",
"score": null,
"handoff_status": "scheduled",
"scheduled_at": "2026-12-03T16:00:00.000Z"
}
],
"rejection_reason": null,
"rejected_at": null,
"withdrawn": false,
"custom_fields": {
"source_channel": "Referral"
},
"created_at": "2026-11-28T09:30:00.000Z",
"updated_at": "2026-11-30T14:05:12.000Z"
}Stages
The API reads and changes an application’s progress through stages. An application’sstage is null only until it has a stage.
Find stage ids on any application’s stage, or in the stage events. A stage in the complete_unsuccessful category rejects the application; send rejection_reason with it to record why.Authorizations
apiKeyAuthbearerAuth
Headers
A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.
Required string length:
1 - 255Body
application/json
Send stage_id, rejection_reason or both.
Response
The updated application.
A candidate's application to a job. stage is read from your company's application stages only: it is null when the application has no stage yet.