Get a job stage
Returns a job stage with its job reference and resolved settings. An unknown or out-of-organization stage ID returns not found. The request returns PERMISSION_DENIED when the caller cannot access the job.
curl --request GET \
--url https://api.modernloop.io/v1/job-stages/{jobStageId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.modernloop.io/v1/job-stages/{jobStageId}"
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/{jobStageId}', 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/{jobStageId}",
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/{jobStageId}"
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/{jobStageId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modernloop.io/v1/job-stages/{jobStageId}")
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{
"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>"
}{
"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.
Path Parameters
a 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})$"stg_a1b2c3d4e5f64789a1b2c3d4e5f64789"
Response
Success
Canonical job stage ID (stg_ followed by 32 lowercase hexadecimal UUID characters).
^stg_[0-9a-f]{32}$"stg_a1b2c3d4e5f64789a1b2c3d4e5f64789"
Canonical job ID (job_ followed by 32 lowercase hexadecimal UUID characters).
^job_[0-9a-f]{32}$"job_a1b2c3d4e5f64789a1b2c3d4e5f64789"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ISO 8601 timestamp. Responses are normalized to UTC with a Z suffix.
ISO 8601 timestamp. Responses are normalized to UTC with a Z suffix.
Link that opens this resource in the ModernLoop app.
Was this page helpful?
curl --request GET \
--url https://api.modernloop.io/v1/job-stages/{jobStageId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.modernloop.io/v1/job-stages/{jobStageId}"
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/{jobStageId}', 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/{jobStageId}",
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/{jobStageId}"
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/{jobStageId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modernloop.io/v1/job-stages/{jobStageId}")
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{
"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>"
}{
"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": [
{}
]
}
}