List the departments a job can belong to

GET /v1/departments

Permission needed: jobs:read

Responses

  • 200 Departments
  • 429 Too many requests

Examples

curl
curl 'https://api.novatalent.com/v1/departments' \
  -H "X-Api-Key: $NOVA_API_KEY"
Node
const response = await fetch('https://api.novatalent.com/v1/departments', {
  method: 'GET',
  headers: { 'X-Api-Key': process.env.NOVA_API_KEY },
});
console.log(response.status, await response.json());
PHP
<?php
$curl = curl_init('https://api.novatalent.com/v1/departments');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-Api-Key: ' . getenv('NOVA_API_KEY')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
echo $status . " " . $response;