Discussions
call returns `forbidden.http.exception`
almost 2 years ago by Wiebke
Hi,
I query the /auth endpoint to get the first bearer token and the response is
{
"success": true,
"data": {
"token": ""
}
}
However, using this token in the next request, i.e. for endpoint https://api.personio.de/v1/company/employees the response is
{
"success": false,
"error": {
"message": "personio.core.api.exceptions.api.forbidden.http.exception",
"code": 0
}
}
The Request that i'm using is:
GET /v1/company/employees HTTP/1.1
Accept: application/json
Authorization: Bearer <token from /auth>
Host: api.personio.de
- credentials have read access to employees
- a few readable employee attributes are selected
- token is only used once
I did try the same steps in a 14 days test trial. There it's working.