Create a new application for a job opportunity
curl --request POST \
--url https://{host}/recruitment/api/public/applications \
--header 'Content-Type: application/json' \
--data '
{
"jobOpportunityId": 123,
"lastName": "<string>",
"firstName": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"resume": {
"fileName": "<string>",
"base64Data": "<string>"
},
"additionalFiles": [
{
"fileName": "<string>",
"base64Data": "<string>"
}
],
"comments": [
"<string>"
],
"consentToGoInTalentPool": true
}
'import requests
url = "https://{host}/recruitment/api/public/applications"
payload = {
"jobOpportunityId": 123,
"lastName": "<string>",
"firstName": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"resume": {
"fileName": "<string>",
"base64Data": "<string>"
},
"additionalFiles": [
{
"fileName": "<string>",
"base64Data": "<string>"
}
],
"comments": ["<string>"],
"consentToGoInTalentPool": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
jobOpportunityId: 123,
lastName: '<string>',
firstName: '<string>',
phoneNumber: '<string>',
emailAddress: '<string>',
resume: {fileName: '<string>', base64Data: '<string>'},
additionalFiles: [{fileName: '<string>', base64Data: '<string>'}],
comments: ['<string>'],
consentToGoInTalentPool: true
})
};
fetch('https://{host}/recruitment/api/public/applications', 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://{host}/recruitment/api/public/applications",
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([
'jobOpportunityId' => 123,
'lastName' => '<string>',
'firstName' => '<string>',
'phoneNumber' => '<string>',
'emailAddress' => '<string>',
'resume' => [
'fileName' => '<string>',
'base64Data' => '<string>'
],
'additionalFiles' => [
[
'fileName' => '<string>',
'base64Data' => '<string>'
]
],
'comments' => [
'<string>'
],
'consentToGoInTalentPool' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://{host}/recruitment/api/public/applications"
payload := strings.NewReader("{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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://{host}/recruitment/api/public/applications")
.header("Content-Type", "application/json")
.body("{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/recruitment/api/public/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}"
response = http.request(request)
puts response.read_bodyApplications
Create a new application for a job opportunity
This route allows creating a new application for a job opportunity, given candidate information.
Usable only with an API key. It is designed for custom career sites that need to push candidate data directly into Lucca Recruitment.
POST
/
recruitment
/
api
/
public
/
applications
Create a new application for a job opportunity
curl --request POST \
--url https://{host}/recruitment/api/public/applications \
--header 'Content-Type: application/json' \
--data '
{
"jobOpportunityId": 123,
"lastName": "<string>",
"firstName": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"resume": {
"fileName": "<string>",
"base64Data": "<string>"
},
"additionalFiles": [
{
"fileName": "<string>",
"base64Data": "<string>"
}
],
"comments": [
"<string>"
],
"consentToGoInTalentPool": true
}
'import requests
url = "https://{host}/recruitment/api/public/applications"
payload = {
"jobOpportunityId": 123,
"lastName": "<string>",
"firstName": "<string>",
"phoneNumber": "<string>",
"emailAddress": "<string>",
"resume": {
"fileName": "<string>",
"base64Data": "<string>"
},
"additionalFiles": [
{
"fileName": "<string>",
"base64Data": "<string>"
}
],
"comments": ["<string>"],
"consentToGoInTalentPool": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
jobOpportunityId: 123,
lastName: '<string>',
firstName: '<string>',
phoneNumber: '<string>',
emailAddress: '<string>',
resume: {fileName: '<string>', base64Data: '<string>'},
additionalFiles: [{fileName: '<string>', base64Data: '<string>'}],
comments: ['<string>'],
consentToGoInTalentPool: true
})
};
fetch('https://{host}/recruitment/api/public/applications', 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://{host}/recruitment/api/public/applications",
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([
'jobOpportunityId' => 123,
'lastName' => '<string>',
'firstName' => '<string>',
'phoneNumber' => '<string>',
'emailAddress' => '<string>',
'resume' => [
'fileName' => '<string>',
'base64Data' => '<string>'
],
'additionalFiles' => [
[
'fileName' => '<string>',
'base64Data' => '<string>'
]
],
'comments' => [
'<string>'
],
'consentToGoInTalentPool' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://{host}/recruitment/api/public/applications"
payload := strings.NewReader("{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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://{host}/recruitment/api/public/applications")
.header("Content-Type", "application/json")
.body("{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/recruitment/api/public/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobOpportunityId\": 123,\n \"lastName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"emailAddress\": \"<string>\",\n \"resume\": {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n },\n \"additionalFiles\": [\n {\n \"fileName\": \"<string>\",\n \"base64Data\": \"<string>\"\n }\n ],\n \"comments\": [\n \"<string>\"\n ],\n \"consentToGoInTalentPool\": true\n}"
response = http.request(request)
puts response.read_bodyEvery successful creation triggers an automated email to the candidate, consistent with the standard Lucca form application workflow.
Body
application/json
Application payload containing candidate details, files, and Job opportunity Id.
Payload for creating a new application for a job opportunity.
Response
202
Application accepted. It will be processed shortly.
Was this page helpful?