List job stages
Returns job-stage summaries and resolved settings for the requested stage IDs or a single job. At least one of ids or job_id is required; when both are supplied, only stages that satisfy both are returned. This operation returns a single unpaginated result page. Jobs the caller cannot access are omitted.
curl --request GET \
--url https://api.modernloop.io/v1/job-stages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.modernloop.io/v1/job-stages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.modernloop.io/v1/job-stages', 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.modernloop.io/v1/job-stages",
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://api.modernloop.io/v1/job-stages"
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://api.modernloop.io/v1/job-stages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modernloop.io/v1/job-stages")
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": "stg_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"job_id": "job_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"name": "<string>",
"index": 123,
"schedulable": true,
"ats": {
"type": "GREENHOUSE",
"id": "<string>"
},
"has_custom_interview_plan": true,
"settings": {
"automation": {
"is_automated_task_enabled": true,
"create_automated_task_on_behalf_of": "usr_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"default_task": "ASSIGN_TASK"
},
"candidate_notifications": {
"should_send_email": true,
"should_send_calendar_invite": true,
"should_send_chat_message": true,
"should_send_candidate_pulse": true
},
"self_schedule_defaults": {
"advance_notice_in_hours": 123,
"rolling_days": 123,
"use_rolling_days": true,
"number_of_days": 123,
"location": "NONE",
"custom_location": "<string>",
"is_private_calendar_event": true,
"should_respect_load_limit": true,
"can_schedule_over_recruiting_keywords": true,
"can_schedule_over_available_keywords": true,
"can_schedule_over_free_time": true,
"candidate_note": "<string>"
},
"availability_request_defaults": {
"number_of_days": 123,
"minutes_per_day": 123,
"minimum_time_block_minutes": 123,
"advance_notice_minutes": 123,
"rolling_days": 123,
"use_rolling_days": true,
"timeframe_number_of_days": 123,
"should_respect_load_limit": true,
"can_schedule_over_recruiting_keywords": true,
"can_schedule_over_available_keywords": true,
"can_schedule_over_free_time": true,
"candidate_note": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"app_url": "<string>"
}
],
"pagination": {
"next_cursor": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}Authorizations
API tokens are passed as Bearer tokens.
Query Parameters
Opaque pagination cursor from the previous page's pagination.next_cursor, bound to the same query filters.
Page size. Must be between 1 and 100; defaults to 25.
1 <= x <= 100Comma-separated list of IDs; maximum 100 values.
1a job stage ID. Accepts the canonical prefixed compact UUID, a prefixed dashed UUID, a bare dashed UUID, or a bare compact UUID; input is case-insensitive.
^(?:stg_)?(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Matches stages belonging to this exact job ID. When ids is also supplied, results must match both filters. a job ID. Accepts the canonical prefixed compact UUID, a prefixed dashed UUID, a bare dashed UUID, or a bare compact UUID; input is case-insensitive.
^(?:job_)?(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"job_a1b2c3d4e5f64789a1b2c3d4e5f64789"
Was this page helpful?
curl --request GET \
--url https://api.modernloop.io/v1/job-stages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.modernloop.io/v1/job-stages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.modernloop.io/v1/job-stages', 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.modernloop.io/v1/job-stages",
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://api.modernloop.io/v1/job-stages"
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://api.modernloop.io/v1/job-stages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modernloop.io/v1/job-stages")
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": "stg_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"job_id": "job_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"name": "<string>",
"index": 123,
"schedulable": true,
"ats": {
"type": "GREENHOUSE",
"id": "<string>"
},
"has_custom_interview_plan": true,
"settings": {
"automation": {
"is_automated_task_enabled": true,
"create_automated_task_on_behalf_of": "usr_a1b2c3d4e5f64789a1b2c3d4e5f64789",
"default_task": "ASSIGN_TASK"
},
"candidate_notifications": {
"should_send_email": true,
"should_send_calendar_invite": true,
"should_send_chat_message": true,
"should_send_candidate_pulse": true
},
"self_schedule_defaults": {
"advance_notice_in_hours": 123,
"rolling_days": 123,
"use_rolling_days": true,
"number_of_days": 123,
"location": "NONE",
"custom_location": "<string>",
"is_private_calendar_event": true,
"should_respect_load_limit": true,
"can_schedule_over_recruiting_keywords": true,
"can_schedule_over_available_keywords": true,
"can_schedule_over_free_time": true,
"candidate_note": "<string>"
},
"availability_request_defaults": {
"number_of_days": 123,
"minutes_per_day": 123,
"minimum_time_block_minutes": 123,
"advance_notice_minutes": 123,
"rolling_days": 123,
"use_rolling_days": true,
"timeframe_number_of_days": 123,
"should_respect_load_limit": true,
"can_schedule_over_recruiting_keywords": true,
"can_schedule_over_available_keywords": true,
"can_schedule_over_free_time": true,
"candidate_note": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"app_url": "<string>"
}
],
"pagination": {
"next_cursor": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"docs_url": "<string>",
"details": [
{}
]
}
}