code: def get_hook_url(self, access_token):
          
          # Allow overwriting hook URL in debug mode.
          if (current_app.debug or current_app.testing) and \
             current_app.config.get('WEBHOOKS_DEBUG_RECEIVER_URLS', None):
              url_pattern = current_app.config[
                  'WEBHOOKS_DEBUG_RECEIVER_URLS'].get(self.receiver_id, None)
              if url_pattern:
                  return url_pattern % dict(token=access_token)
          return url_for(
              'invenio_webhooks.event_list',
              receiver_id=self.receiver_id,
              access_token=access_token,
              _external=True
          )
docs: Get URL for webhook.
  
          In debug and testing mode the hook URL can be overwritten using
          ``WEBHOOKS_DEBUG_RECEIVER_URLS`` configuration variable to allow
          testing webhooks via services such as e.g. Ultrahook.
  
          .. code-block:: python
  
              WEBHOOKS_DEBUG_RECEIVER_URLS = dict(
                  github='http://github.userid.ultrahook.com',
              )