Discussions
Obtain Access Token v2 with scope
7 days ago by Patrick Schläpfer
Trying to get an Access Token with v2 API, using the genrated CURL:
curl --request POST \
--url https://api.personio.de/v2/auth/token \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data scope=personio:webhooks:read \
--data client_id=<client_id> \
--data client_secret=<client_secret>
But the response is a 503
{
"personio_trace_id": "61953459-4181-495b-b2c6-8275c5331f06",
"timestamp": "2025-03-19T09:29:37Z",
"errors": [
{
"title": "Service Unavailable",
"detail": "Our service is currently unavailable due to technical difficulties.",
"type": null,
"_meta": {}
}
]
}
What I am doing wrong, if this is not possible, how to retrieve Webhooks by api?
7 days ago by ChristophAdmin
Hi Patrick,
please make sure that the API credentials you are using do have proper access rights for Webhooks. This can be checked in Personio via Settings > API credentials and then clicking on the credentials you are using.
I will inform the responsible colleagues about the error message being unclear here.
Best,
Christoph
Marked as answered by Christoph
7 days ago by Patrick Schläpfer
Yes, that did the trick.