Add api routes for webhooks.