Discussions
Recruting API Auth 401
Hi Personio Team,
I'm having trouble Authenticating with the Recruiting API https://api.personio.de/v1/recruiting/applications
I've tried calling the endpoint via postman and using the Try It! feature on the API doc page https://developer.personio.de/reference/post_v1-recruiting-applications
replacing my real data with dummy data this is the request I'm trying to send from the Try It! feature.
curl --request POST \
--url https://api.personio.de/v1/recruiting/applications \
--header 'Accept: application/json' \
--header 'Authorization: Bearer abc' \
--header 'Content-Type: application/json' \
--header 'X-Company-ID: 12345' \
--data '
{
"first_name": "first",
"last_name": "last",
"email": "[email protected]",
"job_position_id": 678910
}
'
I got the Bearer Token and Company-ID from the "Recruiting API Key" under https://{YOUR_COMPANY}.personio.de/configuration/api/credentials/management
is there anything I need to enable to have this endpoint/auth work?
I found a similar post on here which sounds just like the problem I am having https://developer.personio.de/discuss/6285495ddeba1100a8c4f5bc
is it possible the same problem is occurring here?
Cheers,
Nikolai