The behavior you are experiencing with the webhook URL is due to the wildcard domain feature that Microsoft Teams supports for webhook URLs. This feature allows you to have flexibility in the subdomain part of the URL while ensuring that the main domain remains the same.
When you mention that you can write anything in the subdomain part of the URL (e.g., "icanwriteanything"), and it still works, it is because Microsoft Teams validates the main domain (in this case, "webhook.office.com") and allows flexibility in the subdomain part. This behavior is intentional and designed to provide developers with some level of flexibility while maintaining security standards.
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.