Configure signed Personio webhooks
POST
/v1/admin/hr/hook
const url = 'https://api.academy.example.com/v1/admin/hr/hook';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"companyId":"example","signingSecret":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.academy.example.com/v1/admin/hr/hook \ --header 'Content-Type: application/json' \ --data '{ "companyId": "example", "signingSecret": "example" }'Versioned integration contract.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
companyId
string
signingSecret
required
string
Example generated
{ "companyId": "example", "signingSecret": "example"}Responses
Section titled “Responses”Success
default
Section titled “default”Error; error and message identify the reason
Media typeapplication/json
object
error
required
Stable code, e.g. insufficient_scope, not_found, validation_failed
string
message
string
Example generated
{ "error": "example", "message": "example"}