cURL
curl -X POST "https://api.alex.com/v2/resume-fit" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"external_submission_id": "SUB-55012",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_candidate_id": "CAND-881",
"resume_base64": "JVBERi0xLjQKJ...",
"writeback": {
"object_name": "JobSubmission",
"score_field_name": "customFloat1",
"analysis_field_name": "customTextBlock1"
}
}'import requests
url = "https://api.alex.com/v2/resume-fit"
payload = {
"external_submission_id": "SUB-55012",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_candidate_id": "CAND-881",
"resume_base64": "JVBERi0xLjQKJ...",
"writeback": {
"object_name": "JobSubmission",
"score_field_name": "customFloat1",
"analysis_field_name": "customTextBlock1"
}
}
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({
external_submission_id: 'SUB-55012',
job_id: '8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31',
external_candidate_id: 'CAND-881',
resume_base64: 'JVBERi0xLjQKJ...',
writeback: {
object_name: 'JobSubmission',
score_field_name: 'customFloat1',
analysis_field_name: 'customTextBlock1'
}
})
};
fetch('https://api.alex.com/v2/resume-fit', 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/resume-fit",
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([
'external_submission_id' => 'SUB-55012',
'job_id' => '8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31',
'external_candidate_id' => 'CAND-881',
'resume_base64' => 'JVBERi0xLjQKJ...',
'writeback' => [
'object_name' => 'JobSubmission',
'score_field_name' => 'customFloat1',
'analysis_field_name' => 'customTextBlock1'
]
]),
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/resume-fit"
payload := strings.NewReader("{\n \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\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/resume-fit")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/resume-fit")
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 \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "resume_fit",
"application_id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"score": 82,
"current_role": "Backend Engineer at Northwind",
"summary": "Six years building payment and messaging backends in Go and Python.",
"writeback": {
"object": "resume_fit_writeback",
"succeeded": true,
"errors": []
}
}
Resume Fit
Score a résumé
Scores a résumé against a job, stores the result on the candidate’s application, and optionally writes it to a record in your ATS. Synchronous: expect a response in tens of seconds. This endpoint has a lower rate limit of its own.
POST
/
resume-fit
cURL
curl -X POST "https://api.alex.com/v2/resume-fit" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"external_submission_id": "SUB-55012",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_candidate_id": "CAND-881",
"resume_base64": "JVBERi0xLjQKJ...",
"writeback": {
"object_name": "JobSubmission",
"score_field_name": "customFloat1",
"analysis_field_name": "customTextBlock1"
}
}'import requests
url = "https://api.alex.com/v2/resume-fit"
payload = {
"external_submission_id": "SUB-55012",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"external_candidate_id": "CAND-881",
"resume_base64": "JVBERi0xLjQKJ...",
"writeback": {
"object_name": "JobSubmission",
"score_field_name": "customFloat1",
"analysis_field_name": "customTextBlock1"
}
}
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({
external_submission_id: 'SUB-55012',
job_id: '8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31',
external_candidate_id: 'CAND-881',
resume_base64: 'JVBERi0xLjQKJ...',
writeback: {
object_name: 'JobSubmission',
score_field_name: 'customFloat1',
analysis_field_name: 'customTextBlock1'
}
})
};
fetch('https://api.alex.com/v2/resume-fit', 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/resume-fit",
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([
'external_submission_id' => 'SUB-55012',
'job_id' => '8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31',
'external_candidate_id' => 'CAND-881',
'resume_base64' => 'JVBERi0xLjQKJ...',
'writeback' => [
'object_name' => 'JobSubmission',
'score_field_name' => 'customFloat1',
'analysis_field_name' => 'customTextBlock1'
]
]),
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/resume-fit"
payload := strings.NewReader("{\n \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\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/resume-fit")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/resume-fit")
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 \"external_submission_id\": \"SUB-55012\",\n \"job_id\": \"8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31\",\n \"external_candidate_id\": \"CAND-881\",\n \"resume_base64\": \"JVBERi0xLjQKJ...\",\n \"writeback\": {\n \"object_name\": \"JobSubmission\",\n \"score_field_name\": \"customFloat1\",\n \"analysis_field_name\": \"customTextBlock1\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "resume_fit",
"application_id": "e7a3c1f0-9b2d-4c8e-a6f5-3d1b0c9e8f72",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"score": 82,
"current_role": "Backend Engineer at Northwind",
"summary": "Six years building payment and messaging backends in Go and Python.",
"writeback": {
"object": "resume_fit_writeback",
"succeeded": true,
"errors": []
}
}
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
Response
The résumé fit.