Get Job Posting
curl --request GET \
--url https://api.stackone.com/unified/ats/job_postings/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'import requests
url = "https://api.stackone.com/unified/ats/job_postings/{id}"
headers = {
"x-account-id": "<x-account-id>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-account-id': '<x-account-id>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.stackone.com/unified/ats/job_postings/{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://api.stackone.com/unified/ats/job_postings/{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: Basic <encoded-value>",
"x-account-id: <x-account-id>"
],
]);
$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.stackone.com/unified/ats/job_postings/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-account-id", "<x-account-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.stackone.com/unified/ats/job_postings/{id}")
.header("x-account-id", "<x-account-id>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackone.com/unified/ats/job_postings/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-account-id"] = '<x-account-id>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"unified_custom_fields": {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
},
"title": "Software Engineer",
"locations": [
{
"id": "12345",
"name": "New York"
},
{
"id": "67890",
"name": "Remote"
}
],
"internal": "true",
"status": {
"value": "live",
"source_value": "Live"
},
"job_id": "job001",
"remote_job_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"content": {
"plain": "This is a plain text description",
"html": "<p>This is an HTML description</p>"
},
"compensation": [
{
"title": "Base Salary",
"type": "salary",
"pay_period": "month",
"pay_frequency": "yearly",
"currency": "USD",
"value": "50000",
"min_value_range": "45000",
"max_value_range": "55000"
},
{
"title": "Bonus",
"type": "bonus",
"pay_frequency": "quarterly",
"currency": "USD",
"value": "10%"
}
],
"employment_type": {
"value": "permanent",
"source_value": "Permanent"
},
"employment_contract_type": {
"value": "full_time",
"source_value": "FullTime"
},
"external_url": "https://www.example.com/job-posting/abcd1234",
"external_apply_url": "https://www.example.com/job-posting/abcd1234/apply",
"questionnaires": [
{
"id": "about001",
"name": "About",
"internal": "false",
"questions": [
{
"id": "question001",
"text": "What is your name?",
"type": "short_text",
"required": true,
"parent_question": null
},
{
"id": "question002",
"text": "What are your hobbies?",
"type": "long_text",
"required": false,
"parent_question": null
},
{
"id": "question003",
"text": "What is your favourite animal?",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Dog"
},
{
"id": "2",
"text": "Cat"
},
{
"id": "3",
"text": "Bird"
},
{
"id": "4",
"text": "Other"
}
],
"parent_question": null
},
{
"id": "question004",
"text": "Do you have previous work experience??",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Yes"
},
{
"id": "2",
"text": "No"
}
],
"parent_question": null
},
{
"id": "question005",
"text": "What was the duration of your last employment?",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Less than 1 year"
},
{
"id": "2",
"text": "1-2 years"
},
{
"id": "2",
"text": "More than 2 year"
}
],
"parent_question": {
"id": "question004",
"option_ids": [
"1"
],
"condition_type": "equals_to"
}
}
]
},
{
"id": "experience001",
"name": "Experience",
"internal": "false",
"questions": [
{
"id": "question004",
"text": "Please upload your resume.",
"type": "attachment",
"parent_question": null,
"required": true
},
{
"id": "question005",
"text": "Select the programming languages you are proficient in.",
"type": "multi_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "JavaScript"
},
{
"id": "2",
"text": "Python"
},
{
"id": "3",
"text": "Java"
}
],
"parent_question": null,
"required": true
},
{
"id": "question006",
"text": "Are you willing to relocate?",
"type": "boolean",
"parent_question": null
},
{
"id": "question007",
"text": "How many years of experience do you have?",
"type": "number",
"parent_question": null
},
{
"id": "question008",
"text": "When did you start your most recent position?",
"type": "date",
"parent_question": null
},
{
"id": "question009",
"text": "Do you have Project Management Experience?",
"type": "single_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "Yes"
},
{
"id": "2",
"text": "No"
}
],
"parent_question": null,
"required": true
},
{
"id": "question010",
"text": "How much Project Management experience do you have?",
"type": "single_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "1-3 years"
},
{
"id": "2",
"text": "3-5 years"
},
{
"id": "3",
"text": "5-10 years"
},
{
"id": "4",
"text": "More than 10 years"
}
],
"parent_question": {
"id": "question009",
"option_ids": [
"1"
],
"condition_type": "equals_to"
}
}
]
}
],
"start_date": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}{
"statusCode": 400,
"message": "Bad Request",
"timestamp": "2023-05-30T00:00:00.000Z",
"data": {
"statusCode": 400,
"message": "Bad Request",
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
},
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
}{
"statusCode": 401,
"message": "Unauthorized",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 403,
"message": "Forbidden resource",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 404,
"message": "Not Found",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 408,
"message": "Request timed out",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 409,
"message": "Conflict",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 412,
"message": "Precondition failed",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 429,
"message": "Too many requests",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 500,
"message": "Internal server error",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 501,
"message": "Not Implemented",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 502,
"message": "Bad Gateway",
"timestamp": "2023-05-30T00:00:00.000Z"
}Job Postings
Get Job Posting
GET
/
unified
/
ats
/
job_postings
/
{id}
Get Job Posting
curl --request GET \
--url https://api.stackone.com/unified/ats/job_postings/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'import requests
url = "https://api.stackone.com/unified/ats/job_postings/{id}"
headers = {
"x-account-id": "<x-account-id>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-account-id': '<x-account-id>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.stackone.com/unified/ats/job_postings/{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://api.stackone.com/unified/ats/job_postings/{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: Basic <encoded-value>",
"x-account-id: <x-account-id>"
],
]);
$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.stackone.com/unified/ats/job_postings/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-account-id", "<x-account-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.stackone.com/unified/ats/job_postings/{id}")
.header("x-account-id", "<x-account-id>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackone.com/unified/ats/job_postings/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-account-id"] = '<x-account-id>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"unified_custom_fields": {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
},
"title": "Software Engineer",
"locations": [
{
"id": "12345",
"name": "New York"
},
{
"id": "67890",
"name": "Remote"
}
],
"internal": "true",
"status": {
"value": "live",
"source_value": "Live"
},
"job_id": "job001",
"remote_job_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"content": {
"plain": "This is a plain text description",
"html": "<p>This is an HTML description</p>"
},
"compensation": [
{
"title": "Base Salary",
"type": "salary",
"pay_period": "month",
"pay_frequency": "yearly",
"currency": "USD",
"value": "50000",
"min_value_range": "45000",
"max_value_range": "55000"
},
{
"title": "Bonus",
"type": "bonus",
"pay_frequency": "quarterly",
"currency": "USD",
"value": "10%"
}
],
"employment_type": {
"value": "permanent",
"source_value": "Permanent"
},
"employment_contract_type": {
"value": "full_time",
"source_value": "FullTime"
},
"external_url": "https://www.example.com/job-posting/abcd1234",
"external_apply_url": "https://www.example.com/job-posting/abcd1234/apply",
"questionnaires": [
{
"id": "about001",
"name": "About",
"internal": "false",
"questions": [
{
"id": "question001",
"text": "What is your name?",
"type": "short_text",
"required": true,
"parent_question": null
},
{
"id": "question002",
"text": "What are your hobbies?",
"type": "long_text",
"required": false,
"parent_question": null
},
{
"id": "question003",
"text": "What is your favourite animal?",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Dog"
},
{
"id": "2",
"text": "Cat"
},
{
"id": "3",
"text": "Bird"
},
{
"id": "4",
"text": "Other"
}
],
"parent_question": null
},
{
"id": "question004",
"text": "Do you have previous work experience??",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Yes"
},
{
"id": "2",
"text": "No"
}
],
"parent_question": null
},
{
"id": "question005",
"text": "What was the duration of your last employment?",
"type": "single_select",
"required": true,
"multiple_choice_answers": [
{
"id": "1",
"text": "Less than 1 year"
},
{
"id": "2",
"text": "1-2 years"
},
{
"id": "2",
"text": "More than 2 year"
}
],
"parent_question": {
"id": "question004",
"option_ids": [
"1"
],
"condition_type": "equals_to"
}
}
]
},
{
"id": "experience001",
"name": "Experience",
"internal": "false",
"questions": [
{
"id": "question004",
"text": "Please upload your resume.",
"type": "attachment",
"parent_question": null,
"required": true
},
{
"id": "question005",
"text": "Select the programming languages you are proficient in.",
"type": "multi_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "JavaScript"
},
{
"id": "2",
"text": "Python"
},
{
"id": "3",
"text": "Java"
}
],
"parent_question": null,
"required": true
},
{
"id": "question006",
"text": "Are you willing to relocate?",
"type": "boolean",
"parent_question": null
},
{
"id": "question007",
"text": "How many years of experience do you have?",
"type": "number",
"parent_question": null
},
{
"id": "question008",
"text": "When did you start your most recent position?",
"type": "date",
"parent_question": null
},
{
"id": "question009",
"text": "Do you have Project Management Experience?",
"type": "single_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "Yes"
},
{
"id": "2",
"text": "No"
}
],
"parent_question": null,
"required": true
},
{
"id": "question010",
"text": "How much Project Management experience do you have?",
"type": "single_select",
"multiple_choice_answers": [
{
"id": "1",
"text": "1-3 years"
},
{
"id": "2",
"text": "3-5 years"
},
{
"id": "3",
"text": "5-10 years"
},
{
"id": "4",
"text": "More than 10 years"
}
],
"parent_question": {
"id": "question009",
"option_ids": [
"1"
],
"condition_type": "equals_to"
}
}
]
}
],
"start_date": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}{
"statusCode": 400,
"message": "Bad Request",
"timestamp": "2023-05-30T00:00:00.000Z",
"data": {
"statusCode": 400,
"message": "Bad Request",
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
},
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
}{
"statusCode": 401,
"message": "Unauthorized",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 403,
"message": "Forbidden resource",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 404,
"message": "Not Found",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 408,
"message": "Request timed out",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 409,
"message": "Conflict",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 412,
"message": "Precondition failed",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 429,
"message": "Too many requests",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 500,
"message": "Internal server error",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 501,
"message": "Not Implemented",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 502,
"message": "Bad Gateway",
"timestamp": "2023-05-30T00:00:00.000Z"
}Authorizations
Headers
Query Parameters
The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
Example:
"id,remote_id,title,locations,internal,status,job_id,remote_job_id,content,compensation,employment_type,employment_contract_type,external_url,external_apply_url,questionnaires,start_date,updated_at,created_at,unified_custom_fields"