Create a new job opening
curl --request POST \
--url https://api.alpharun.com/api/v1/job-openings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"job_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"pay": "<string>",
"hours": "<string>",
"link_access": {
"restricted": true
},
"owner_emails": [
"[email protected]"
]
}
'import requests
url = "https://api.alpharun.com/api/v1/job-openings"
payload = {
"name": "<string>",
"job_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"pay": "<string>",
"hours": "<string>",
"link_access": { "restricted": True },
"owner_emails": ["[email protected]"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
job_type_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
location: '<string>',
pay: '<string>',
hours: '<string>',
link_access: {restricted: true},
owner_emails: ['[email protected]']
})
};
fetch('https://api.alpharun.com/api/v1/job-openings', 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.alpharun.com/api/v1/job-openings",
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([
'name' => '<string>',
'job_type_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'location' => '<string>',
'pay' => '<string>',
'hours' => '<string>',
'link_access' => [
'restricted' => true
],
'owner_emails' => [
'[email protected]'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.alpharun.com/api/v1/job-openings"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.alpharun.com/api/v1/job-openings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpharun.com/api/v1/job-openings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"job_opening": {
"id": "123456",
"interview_link": "https://alpharun.com/i/abcdef123456",
"job_type": {
"id": "789012"
}
}
}
}Hiring
Create Job Opening
Creates a new job opening with either an existing job type ID or a new job type configuration. A job opening (e.g. “Store Manager — San Francisco”) is always instance of a job type (e.g. “Store Manager”).
POST
/
job-openings
Create a new job opening
curl --request POST \
--url https://api.alpharun.com/api/v1/job-openings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"job_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"pay": "<string>",
"hours": "<string>",
"link_access": {
"restricted": true
},
"owner_emails": [
"[email protected]"
]
}
'import requests
url = "https://api.alpharun.com/api/v1/job-openings"
payload = {
"name": "<string>",
"job_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"pay": "<string>",
"hours": "<string>",
"link_access": { "restricted": True },
"owner_emails": ["[email protected]"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
job_type_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
location: '<string>',
pay: '<string>',
hours: '<string>',
link_access: {restricted: true},
owner_emails: ['[email protected]']
})
};
fetch('https://api.alpharun.com/api/v1/job-openings', 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.alpharun.com/api/v1/job-openings",
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([
'name' => '<string>',
'job_type_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'location' => '<string>',
'pay' => '<string>',
'hours' => '<string>',
'link_access' => [
'restricted' => true
],
'owner_emails' => [
'[email protected]'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.alpharun.com/api/v1/job-openings"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.alpharun.com/api/v1/job-openings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpharun.com/api/v1/job-openings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"job_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"location\": \"<string>\",\n \"pay\": \"<string>\",\n \"hours\": \"<string>\",\n \"link_access\": {\n \"restricted\": true\n },\n \"owner_emails\": [\n \"[email protected]\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"job_opening": {
"id": "123456",
"interview_link": "https://alpharun.com/i/abcdef123456",
"job_type": {
"id": "789012"
}
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
- Option 1
- Option 2
Name of the job opening. Example: 'Store Manager - San Francisco'
Required string length:
3 - 150ID of an existing job type
Location of the job. Example: 'In-office 3 days per week in San Francisco, CA'
Maximum string length:
200Pay information. Example: '$18 per hour or $80,000 - $100,000 per year'
Maximum string length:
200Working hours information. Example: 'Full-time, 40 hours per week'
Maximum string length:
200Show child attributes
Show child attributes
Array of teammate email addresses for job opening owners.
Response
Job opening created successfully
Show child attributes
Show child attributes
⌘I