curl -X POST "https://api.alex.com/v2/invitations" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"candidate": {
"first_name": "Ada",
"last_name": "Lovelace",
"external_id": "CAND-881"
},
"job_external_id": "REQ-12345",
"contact": {
"email": "[email protected]"
}
}'import requests
url = "https://api.alex.com/v2/invitations"
payload = {
"candidate": {
"first_name": "Ada",
"last_name": "Lovelace",
"external_id": "CAND-881"
},
"job_external_id": "REQ-12345",
"contact": { "email": "[email protected]" }
}
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({
candidate: {first_name: 'Ada', last_name: 'Lovelace', external_id: 'CAND-881'},
job_external_id: 'REQ-12345',
contact: {email: '[email protected]'}
})
};
fetch('https://api.alex.com/v2/invitations', 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/invitations",
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([
'candidate' => [
'first_name' => 'Ada',
'last_name' => 'Lovelace',
'external_id' => 'CAND-881'
],
'job_external_id' => 'REQ-12345',
'contact' => [
'email' => '[email protected]'
]
]),
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/invitations"
payload := strings.NewReader("{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}")
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/invitations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/invitations")
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 = "{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "invitation",
"application": {
"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"
},
"invite_sent": true,
"skipped_reason": null
}Invite a candidate
Invites a candidate to a job, as the dashboard’s manual invite does. The candidate’s live, undecided application on the job is reused; if their last one has concluded, rejected included, a new application is created and the candidate is invited again. There is no cooldown between invitations. Returns 201 when a new application was created, 200 otherwise. A job with no rounds yet returns 409 job_not_ready.
curl -X POST "https://api.alex.com/v2/invitations" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"candidate": {
"first_name": "Ada",
"last_name": "Lovelace",
"external_id": "CAND-881"
},
"job_external_id": "REQ-12345",
"contact": {
"email": "[email protected]"
}
}'import requests
url = "https://api.alex.com/v2/invitations"
payload = {
"candidate": {
"first_name": "Ada",
"last_name": "Lovelace",
"external_id": "CAND-881"
},
"job_external_id": "REQ-12345",
"contact": { "email": "[email protected]" }
}
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({
candidate: {first_name: 'Ada', last_name: 'Lovelace', external_id: 'CAND-881'},
job_external_id: 'REQ-12345',
contact: {email: '[email protected]'}
})
};
fetch('https://api.alex.com/v2/invitations', 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/invitations",
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([
'candidate' => [
'first_name' => 'Ada',
'last_name' => 'Lovelace',
'external_id' => 'CAND-881'
],
'job_external_id' => 'REQ-12345',
'contact' => [
'email' => '[email protected]'
]
]),
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/invitations"
payload := strings.NewReader("{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}")
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/invitations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/invitations")
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 = "{\n \"candidate\": {\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"external_id\": \"CAND-881\"\n },\n \"job_external_id\": \"REQ-12345\",\n \"contact\": {\n \"email\": \"[email protected]\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "invitation",
"application": {
"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"
},
"invite_sent": true,
"skipped_reason": null
}Which application
An invitation reuses the candidate’s application to the job only when it is undecided: not withdrawn or deleted, with no stage or anot_started stage, and no completed interview. Otherwise a new application is created, even when the existing one is in an in_progress stage, so a candidate can be invited again at once. There is no cooldown.
The response is 201 when a new application was created and 200 when an existing one was used.
A candidate whose last application to the job was rejected is invited again, on a new application. Your settings on whether rejected candidates may apply again only cover candidates who come back on their own, never an invitation you send.
A job with no rounds yet can’t take invitations: the request returns 409 job_not_ready. Retry once the job has rounds. A closed job returns 409 job_closed.
When nothing is sent
invite_sent: false means Alex didn’t send an invitation. skipped_reason says why:
skipped_reason | Meaning |
|---|---|
do_not_contact | The candidate opted out. application is their live application, or null. |
already_in_progress | The application’s outreach from an earlier invitation is still running. |
workflow_not_started | The job’s workflow didn’t start. |
job_not_invitable | The job stopped taking invitations while the request ran. |
job_not_ready | The job’s rounds were removed while the request ran. |
duplicate_auto_invite, rejected_no_reapply and ats_reopen_unavailable are listed in the schema because invitations Alex starts on its own share it. An invitation sent here never returns them.
Identifying the candidate
Sendcandidate.id for a candidate Alex already has; an email or phone in contact then replaces theirs. A candidate deleted in your ATS can’t be invited by id: it returns 404. Otherwise send first_name, last_name and, optionally, external_id, with an email or phone in contact; Alex finds the candidate by external_id or contact details, or creates one.
contact.phone must have 10 to 15 digits; any other number returns 400 parameter_invalid, where the earlier API dropped it. An optional field sent as null or a blank string, such as contact.email: "" or candidate.external_id: "", counts as not sent.
Name the job with job_id or job_external_id, not both. round_number starts the candidate at that round; leave it out to start at the first.Authorizations
Headers
A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.
1 - 255Body
Response
Invited on the candidate's existing live application, or nothing was sent: skipped_reason says why.
Why nothing was sent. do_not_contact: the candidate opted out. already_in_progress: the application's earlier outreach for this invite is still running. workflow_not_started: the job's workflow has nothing to run for a manual invite. job_not_invitable, job_not_ready: the job stopped taking invitations. rejected_no_reapply, ats_reopen_unavailable and duplicate_auto_invite apply only to invitations Alex starts on its own, never to one sent here. null when invite_sent is true.
do_not_contact, already_in_progress, workflow_not_started, job_not_invitable, job_not_ready, rejected_no_reapply, ats_reopen_unavailable, duplicate_auto_invite, null