Discussions

Ask a Question
Back to All

Personio API credentials do not work

Hi,

I'm trying to make my C#-code work with the Personio API but fail already with getting the bearer token from the /auth-interface.

I see that there is a little tryout-tool on https://developer.personio.de/reference/post_auth
but I can't even manage to get it right here. What am I missing?
The corresponding shell command looks like this:

curl --request POST
--url https://api.personio.de/v1/auth
--header 'accept: application/json'
--header 'content-type: application/json'
--data '
{
"client_id": "copy-paste-starting-with-papi-...",
"client_secret": "copy-paste-starting-with-papi-..."
}
'

The response to this very request is this:
{
"success": false,
"error": {
"code": 0,
"message": "Wrong credentials"
}
}

"Wrong credentials"?? Having a typo here is very unlikely, if you copy+paste the id and secret, right?