Discussions
Recruiting Channels and Attributes
We are trying to call the following endpoints:
https://${hostname}.personio.de/configuration/recruiting/channels
https://${hostname}.personio.de/configuration/recruiting/attributes
We have found these endpoints on the following site.
https://developer.personio.de/reference/post_v1-recruiting-applications
Here is the headers we are using:
{
Authorization: 'Bearer ${accessToken}',
'X-Company-Id': companyId
}
The Response we get when we try to call the endpoints is:
{
"error": true,
"name": "AxiosError",
"message": "Request failed with status code 401",
}
The header work when we are using retrieving the open positions described in
https://developer.personio.de/reference/get_xml
Unfortunately, we could not find any documentation for the 2 endpoints mentioned above.
function callAPI(endpoint) {
const url = ${apiUrl}/${endpoint}
;
const headers = {
Authorization: Bearer ${accessToken}
,
"X-Company-Id": companyId,
};
console.log("URL", url, headers);
try {
return axios.get(url, {
headers,
});
} catch (e) {
return e;
}
}