{
  "generated_from": "hookdeck/webhook-registry",
  "registry_commit": "a24c8d9784c9e9fe937c63f76adbce108201378f",
  "registry_committed_at": "2026-11-19T08:56:09Z",
  "disclaimer": "Independent reference. Not affiliated with Bitbucket.",
  "vendor": "bitbucket",
  "event": "pullrequest:rejected",
  "resource": "pullrequest",
  "url": "https://hookdeck.com/webhooks/bitbucket/events#pullrequest%3Arejected",
  "description": "Pull request gets declined",
  "trigger": null,
  "listed_in": "https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/",
  "confidence": "documented",
  "schema_source": "official schema",
  "identified_by": "x-event-key header",
  "payload": {
    "provenance": "vendor-source",
    "value_realism": "doc-example-values",
    "field_count": 219,
    "key_fields": [],
    "delivery": {
      "title": "From Bitbucket docs",
      "content_type": "application/json",
      "headers": []
    },
    "body": {
      "actor": {
        "display_name": "User Name",
        "links": {
          "self": {
            "href": "https://api.bitbucket.org/2.0/users/0000"
          },
          "avatar": {
            "href": "https://bitbucket.org/account/user_name/avatar/32"
          },
          "html": {
            "href": "https://bitbucket.org/user_name"
          }
        },
        "type": "user",
        "uuid": "0000",
        "account_id": "1111",
        "nickname": "user_name"
      },
      "pullrequest": {
        "id": 1,
        "title": "Title of pull request",
        "description": "Description of pull request",
        "state": "DECLINED",
        "draft": false,
        "author": {
          "display_name": "User Name",
          "links": {
            "self": {
              "href": "https://api.bitbucket.org/2.0/users/0000"
            },
            "avatar": {
              "href": "https://bitbucket.org/account/user_name/avatar/32"
            },
            "html": {
              "href": "https://bitbucket.org/user_name"
            }
          },
          "type": "user",
          "uuid": "0000",
          "account_id": "1111",
          "nickname": "user_name"
        },
        "source": {
          "branch": {
            "name": "branch2"
          },
          "commit": {
            "hash": "d3022fc0ca3d"
          },
          "repository": {
            "type": "repository",
            "full_name": "workspace_name/repo_name",
            "links": {
              "self": {
                "href": "https://api.bitbucket.org/2.0/repositories/workspace_name/repo_name"
              },
              "html": {
                "href": "https://bitbucket.org/workspace_name/repo_name"
              },
              "avatar": {
                "href": "https://bitbucket.org/!bytebucket/ravatar/1111?ts=default"
              }
            },
            "name": "repo_name",
            "slug": "repo_name",
            "scm": "git",
            "website": null,
            "owner": {
              "display_name": "User Name",
              "links": {
                "self": {
                  "href": "https://api.bitbucket.org/2.0/users/0000"
                },
                "avatar": {
                  "href": "https://bitbucket.org/account/user_name/avatar/32"
                },
                "html": {
                  "href": "https://bitbucket.org/user_name"
                }
              },
              "type": "user",
              "uuid": "0000",
              "account_id": "1111",
              "nickname": "user_name"
            },
            "is_private": true,
            "project": {
              "type": "project",
              "key": "PROJECT_KEY",
              "uuid": "2222",
              "name": "Project Name",
              "links": {
                "self": {
                  "href": "https://api.bitbucket.org/2.0/workspaces/workspace_name/projects/PROJECT_KEY"
                },
                "html": {
                  "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY"
                },
                "avatar": {
                  "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY/avatar/32?ts=1749701562"
                }
              }
            },
            "uuid": "1111",
            "state": null
          }
        },
        "destination": {
          "branch": {
            "name": "main"
          },
          "commit": {
            "hash": "ce5965ddd289"
          },
          "repository": {
            "type": "repository",
            "full_name": "workspace_name/repo_name",
            "links": {
              "self": {
                "href": "https://api.bitbucket.org/2.0/repositories/workspace_name/repo_name"
              },
              "html": {
                "href": "https://bitbucket.org/workspace_name/repo_name"
              },
              "avatar": {
                "href": "https://bitbucket.org/!bytebucket/ravatar/1111?ts=default"
              }
            },
            "name": "repo_name",
            "slug": "repo_name",
            "scm": "git",
            "website": null,
            "owner": {
              "display_name": "User Name",
              "links": {
                "self": {
                  "href": "https://api.bitbucket.org/2.0/users/0000"
                },
                "avatar": {
                  "href": "https://bitbucket.org/account/user_name/avatar/32"
                },
                "html": {
                  "href": "https://bitbucket.org/user_name"
                }
              },
              "type": "user",
              "uuid": "0000",
              "account_id": "1111",
              "nickname": "user_name"
            },
            "is_private": true,
            "project": {
              "type": "project",
              "key": "PROJECT_KEY",
              "uuid": "2222",
              "name": "Project Name",
              "links": {
                "self": {
                  "href": "https://api.bitbucket.org/2.0/workspaces/workspace_name/projects/PROJECT_KEY"
                },
                "html": {
                  "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY"
                },
                "avatar": {
                  "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY/avatar/32?ts=1749701562"
                }
              }
            },
            "uuid": "1111",
            "state": null
          }
        },
        "merge_commit": null,
        "participants": [
          {
            "display_name": "User Name",
            "links": {
              "self": {
                "href": "https://api.bitbucket.org/2.0/users/0000"
              },
              "avatar": {
                "href": "https://bitbucket.org/account/user_name/avatar/32"
              },
              "html": {
                "href": "https://bitbucket.org/user_name"
              }
            },
            "type": "user",
            "uuid": "0000",
            "account_id": "1111",
            "nickname": "user_name"
          }
        ],
        "reviewers": [
          {
            "display_name": "User Name",
            "links": {
              "self": {
                "href": "https://api.bitbucket.org/2.0/users/0000"
              },
              "avatar": {
                "href": "https://bitbucket.org/account/user_name/avatar/32"
              },
              "html": {
                "href": "https://bitbucket.org/user_name"
              }
            },
            "type": "user",
            "uuid": "0000",
            "account_id": "1111",
            "nickname": "user_name"
          }
        ],
        "close_source_branch": true,
        "closed_by": {
          "display_name": "User Name",
          "links": {
            "self": {
              "href": "https://api.bitbucket.org/2.0/users/0000"
            },
            "avatar": {
              "href": "https://bitbucket.org/account/user_name/avatar/32"
            },
            "html": {
              "href": "https://bitbucket.org/user_name"
            }
          },
          "type": "user",
          "uuid": "0000",
          "account_id": "1111",
          "nickname": "user_name"
        },
        "reason": "reason for declining the PR (if applicable)",
        "created_on": "2015-04-06T15:23:38.179678+00:00",
        "updated_on": "2015-04-06T15:23:38.205705+00:00",
        "links": {
          "self": {
            "href": "https://api.bitbucket.org/api/2.0/pullrequests/pullrequest_id"
          },
          "html": {
            "href": "https://api.bitbucket.org/pullrequest_id"
          }
        }
      },
      "repository": {
        "type": "repository",
        "full_name": "workspace_name/repo_name",
        "links": {
          "self": {
            "href": "https://api.bitbucket.org/2.0/repositories/workspace_name/repo_name"
          },
          "html": {
            "href": "https://bitbucket.org/workspace_name/repo_name"
          },
          "avatar": {
            "href": "https://bitbucket.org/!bytebucket/ravatar/1111?ts=default"
          }
        },
        "name": "repo_name",
        "slug": "repo_name",
        "scm": "git",
        "website": null,
        "owner": {
          "display_name": "User Name",
          "links": {
            "self": {
              "href": "https://api.bitbucket.org/2.0/users/0000"
            },
            "avatar": {
              "href": "https://bitbucket.org/account/user_name/avatar/32"
            },
            "html": {
              "href": "https://bitbucket.org/user_name"
            }
          },
          "type": "user",
          "uuid": "0000",
          "account_id": "1111",
          "nickname": "user_name"
        },
        "is_private": true,
        "project": {
          "type": "project",
          "key": "PROJECT_KEY",
          "uuid": "2222",
          "name": "Project Name",
          "links": {
            "self": {
              "href": "https://api.bitbucket.org/2.0/workspaces/workspace_name/projects/PROJECT_KEY"
            },
            "html": {
              "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY"
            },
            "avatar": {
              "href": "https://bitbucket.org/workspace_name/workspace/projects/PROJECT_KEY/avatar/32?ts=1749701562"
            }
          }
        },
        "uuid": "1111",
        "state": null
      }
    }
  }
}