On deployment, register created API endpoint as a webhook

I am building a service (bot) which should be triggered by a call. With Serverless, I am able to create an API point which handles an incoming request.

org: acmeinc
app: myfancyapp
service: myfancyapp
frameworkVersion: '3'

provider:
  name: aws
  runtime: nodejs14.x
  region: us-east-2
  logRetentionInDays: 14

functions:
  hello:
    handler: handler.hello
    events:
      - httpApi:
          path: /
          method: post

When I call serverless deploy, it prints among other an endpoint, which I then manually register as a webhook.

Question: is there a way to automatically register the created endpoint as a webhook for external service?

I have tried using serverless-scriptable-plugin to call a Node.js script after deployment, but I can’t find out a way how to get the URL of the created endpoint in the script.