Departments
curl --request GET \
--url https://api.sentrion.ai/api/v1/departments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sentrion.ai/api/v1/departments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sentrion.ai/api/v1/departments', 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.sentrion.ai/api/v1/departments",
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.sentrion.ai/api/v1/departments"
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.sentrion.ai/api/v1/departments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentrion.ai/api/v1/departments")
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_bodyEndpoints
Departments
List accepted departments for job-search filters
GET
/
api
/
v1
/
departments
Departments
curl --request GET \
--url https://api.sentrion.ai/api/v1/departments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sentrion.ai/api/v1/departments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sentrion.ai/api/v1/departments', 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.sentrion.ai/api/v1/departments",
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.sentrion.ai/api/v1/departments"
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.sentrion.ai/api/v1/departments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentrion.ai/api/v1/departments")
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_bodyList accepted departments, optionally filtered by name. Options are sorted
alphabetically and contain a display
Pass each selected
Errors use a
label and a search-ready value.
Authentication and credits
UseAuthorization: Bearer YOUR_API_KEY. An active API key is required. This
endpoint consumes no credits and works with zero or negative balances.
Query parameters
string
Optional name filter, up to 200 characters. Matches any part of the name,
ignoring case and surrounding whitespace. Omit it or pass a blank value to
return the complete list.
Example request
curl 'https://api.sentrion.ai/api/v1/departments?q=engineering' \
-H 'Authorization: Bearer YOUR_API_KEY'
Response
{
"departments": [
{
"label": "Engineering",
"value": "Engineering"
},
{
"label": "Software Engineering",
"value": "Software Engineering"
}
]
}
value unchanged in the department array of a job search.
No matches return an empty departments array.
Errors
| Status | Meaning |
|---|---|
| 403 | Missing, invalid, or inactive API key |
| 422 | Invalid query parameters |
| 503 | Account information temporarily unavailable |
detail field. Successful responses use the object shown above,
without a success or data wrapper.