Webhook for Team Membership Changes


I’m trying to trigger a webhook that will gather a change to a Team’s membership, and then send details regarding the user who has been removed to a webhook.

The body of the call is below, but I’m having problems trying to find documentation to get what I need, either a user’s email, gid, or something.

Thanks in advance!

I have:

  "data": {
    "filters": [
        "action": "removed",
        "resource_type": "team_membership"
    "resource_subtype": "user",
    "resource": "xxxxxxx",
    "target": "{{webhookTarget}}"

Please read this before posting

  • If you received an error from the API that you’re looking for help with, please include the error in your post and be descriptive of the requests you made that received the errors. To be clear, we need the error in the JSON response from the API, not the error your code raised.
  • Do not share any API credentials. Please check that the code you’re pasting into the post does not contain any real OAuth tokens or personal access tokens. If you have exposed credentials, you should revoke them immediately.