API reference / Webhooks
Subscribe to events
POST
/v1/webhooksNeeds a bearer access token with the webhooks.write scope. How authentication works
Registers an HTTPS endpoint to receive the events you choose. The response includes a signing secret. It is shown only once, so store it now. Use it to verify the X-Rolefy-Signature header on every delivery.
Request bodyapplication/jsonrequired
target_urlstringrequiredA public https:// URL.
eventsarray of stringrequiredAllowed values:
application.createdapplication.status_changedjob.status_changed
Responses
- 201Subscription created
Response fields
dataobjectidstring · uuidtarget_urlstringeventsarray of stringAllowed values:
application.createdapplication.status_changedjob.status_changedstatusstringAllowed values:
activedisabledcreated_atstring · date-timesecretstringShown only in this response.
- 400Invalid request (
invalid_request)Example response{ "error": { "code": "invalid_request", "message": "Invalid request (`invalid_request`)." } }
