Discussions

Ask a Question
Back to All

Call returns personio.core.api.exceptions.api.forbidden.http.exception

Hello,

I am trying to make a call to get absence periods for absences (https://api.personio.de/v1/company/time-offs)

The Request that i'm using is:
GET /v1/company/time-offs HTTPS
Accept: application/json
Authorization: Bearer <token from /auth> (new token for each call)
Host: api.personio.de

I am getting this response as a response :

{
"success": false,
"error": {
"message": "personio.core.api.exceptions.api.forbidden.http.exception",
"code": 0
}
}

How do I fix this ?