Documentation for Bitbucket
The Repository Webhooks API allows repository admins to manage the post-receive hooks for a repository
Teams API allows user to access ones teams