Get a project
curl --request GET \
--url https://app.leonar.app/api/v1/projects/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.leonar.app/api/v1/projects/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.leonar.app/api/v1/projects/{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://app.leonar.app/api/v1/projects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.leonar.app/api/v1/projects/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.leonar.app/api/v1/projects/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leonar.app/api/v1/projects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"name": "Senior Frontend Engineers - Paris",
"status": "active",
"client_name": "Jean Dupont",
"client_company": "Doctolib",
"location": "Paris, France",
"description": "Hiring 3 senior frontend engineers for the patient portal team",
"job_enabled": true,
"job_status": "published",
"job_slug": "senior-frontend-engineers-paris",
"job_visible_on_client_site": true,
"job_data": {
"job_title": "Senior Frontend Engineer",
"language": "en",
"location_type": "hybrid",
"contract_type": "cdi",
"description": "<p>Join the patient portal team.</p>",
"require_cv": true
},
"job_published_at": "2025-01-22T09:00:00Z",
"job_closed_at": null,
"job_views_count": 325,
"job_applications_count": 18,
"job_questions": [
{
"id": "f7b8c9d0-1234-45ef-abcd-789012345ef1",
"project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"question_text": "Why do you want to join?",
"question_type": "long_text",
"is_required": true,
"position": 0
}
],
"location_city": "Paris",
"location_country": "France",
"location_country_code": "FR",
"template_id": null,
"created_at": "2025-01-20T09:00:00Z",
"updated_at": "2025-02-10T14:00:00Z",
"owners": [
{
"user_id": "f6a7b8c9-0123-45de-fabc-678901234ef0",
"first_name": "Alice",
"last_name": "Recruiter",
"email": "alice@leonar.ai"
}
],
"entries_count": 42,
"pipeline": {
"stages": [
{
"id": "e5f6a7b8-9012-34cd-efab-567890123def",
"name": "Sourced",
"position": 0,
"system_category": "sourced",
"color": "#3b82f6",
"entries_count": 12
}
]
}
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}Projects
Get a project
Returns project details including pipeline stages and entry counts.
GET
/
projects
/
{id}
Get a project
curl --request GET \
--url https://app.leonar.app/api/v1/projects/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.leonar.app/api/v1/projects/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.leonar.app/api/v1/projects/{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://app.leonar.app/api/v1/projects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.leonar.app/api/v1/projects/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.leonar.app/api/v1/projects/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leonar.app/api/v1/projects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"name": "Senior Frontend Engineers - Paris",
"status": "active",
"client_name": "Jean Dupont",
"client_company": "Doctolib",
"location": "Paris, France",
"description": "Hiring 3 senior frontend engineers for the patient portal team",
"job_enabled": true,
"job_status": "published",
"job_slug": "senior-frontend-engineers-paris",
"job_visible_on_client_site": true,
"job_data": {
"job_title": "Senior Frontend Engineer",
"language": "en",
"location_type": "hybrid",
"contract_type": "cdi",
"description": "<p>Join the patient portal team.</p>",
"require_cv": true
},
"job_published_at": "2025-01-22T09:00:00Z",
"job_closed_at": null,
"job_views_count": 325,
"job_applications_count": 18,
"job_questions": [
{
"id": "f7b8c9d0-1234-45ef-abcd-789012345ef1",
"project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"question_text": "Why do you want to join?",
"question_type": "long_text",
"is_required": true,
"position": 0
}
],
"location_city": "Paris",
"location_country": "France",
"location_country_code": "FR",
"template_id": null,
"created_at": "2025-01-20T09:00:00Z",
"updated_at": "2025-02-10T14:00:00Z",
"owners": [
{
"user_id": "f6a7b8c9-0123-45de-fabc-678901234ef0",
"first_name": "Alice",
"last_name": "Recruiter",
"email": "alice@leonar.ai"
}
],
"entries_count": 42,
"pipeline": {
"stages": [
{
"id": "e5f6a7b8-9012-34cd-efab-567890123def",
"name": "Sourced",
"position": 0,
"system_category": "sourced",
"color": "#3b82f6",
"entries_count": 12
}
]
}
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}Authorizations
API key starting with leo_
Path Parameters
Project ID
Response
Project details
Show child attributes
Show child attributes
Example:
{
"id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"name": "Senior Frontend Engineers - Paris",
"status": "active",
"client_name": "Jean Dupont",
"client_company": "Doctolib",
"location": "Paris, France",
"description": "Hiring 3 senior frontend engineers for the patient portal team",
"job_enabled": true,
"job_status": "published",
"job_slug": "senior-frontend-engineers-paris",
"job_visible_on_client_site": true,
"job_data": {
"job_title": "Senior Frontend Engineer",
"language": "en",
"location_type": "hybrid",
"contract_type": "cdi",
"description": "<p>Join the patient portal team.</p>",
"require_cv": true
},
"job_published_at": "2025-01-22T09:00:00Z",
"job_closed_at": null,
"job_views_count": 325,
"job_applications_count": 18,
"job_questions": [
{
"id": "f7b8c9d0-1234-45ef-abcd-789012345ef1",
"project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"question_text": "Why do you want to join?",
"question_type": "long_text",
"is_required": true,
"position": 0
}
],
"location_city": "Paris",
"location_country": "France",
"location_country_code": "FR",
"template_id": null,
"created_at": "2025-01-20T09:00:00Z",
"updated_at": "2025-02-10T14:00:00Z",
"owners": [
{
"user_id": "f6a7b8c9-0123-45de-fabc-678901234ef0",
"first_name": "Alice",
"last_name": "Recruiter",
"email": "alice@leonar.ai"
}
],
"entries_count": 42,
"pipeline": {
"stages": [
{
"id": "e5f6a7b8-9012-34cd-efab-567890123def",
"name": "Sourced",
"position": 0,
"system_category": "sourced",
"color": "#3b82f6",
"entries_count": 12
}
]
}
}
⌘I