Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Programatically Add/Remove Webhoooks

Started by Admin Team -   in API Endpoints

Is it possible to programmatically add/remove webhooks? This is what I would like to do:

- On application startup:
- Check if a webhook is registered (query for registered webhooks)
- If not register a webhook with the correct callback URL depending on the environment running (DEV, UAT, PROD)
- On application stop remove the registered webhooks

I would also like to know the following:
- Do webhooks support custom connections, i.e. will not require a manual authentication
- Do webhooks work on the demo company for testing?