# Evento de webhook Post Destroyed

**URL:** <https://meta.discourse.org/t/post-destroyed-webhook-event/110259>\
**Category:** Product Support\
**Created:** [27 Febrero, 2019 17:40 UTC](https://meta.discourse.org/t/post-destroyed-webhook-event/110259 "2019-02-27T17:40:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![thisnthat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thisnthat/32/164804_2.png) [@thisnthat](https://meta.discourse.org/u/thisnthat)\
**Post date:** [28 Febrero, 2019 17:14 UTC](https://meta.discourse.org/t/post-destroyed-webhook-event/110259/5 "2019-02-28T17:14:40Z")

</div>

I have, this is the process I used to test it with a snippet of the header and payload of each event

I created the post

Header

```plaintext
User-Agent: Discourse/2.3.0.beta2
X-Discourse-Event-Id: 90
X-Discourse-Event-Type: post
X-Discourse-Event: post_created

```

Payload

```plaintext
{
  "post": {
    "id": 44144,
    ...
    "deleted_at": null,

```

I deleted the post and no event was triggered

I restored the post

Header

```plaintext
User-Agent: Discourse/2.3.0.beta2
X-Discourse-Event-Id: 91
X-Discourse-Event-Type: post
X-Discourse-Event: post_recovered

```

Payload

```plaintext
{
  "post": {
    "id": 44144,
    ...
    "deleted_at": null,

```

I deleted it again – No event

I edited the post

Header

```plaintext
User-Agent: Discourse/2.3.0.beta2
X-Discourse-Event-Id: 92
X-Discourse-Event-Type: post
X-Discourse-Event: post_edited

```

Payload

```plaintext
{
  "post": {
    "id": 44144,
    ....
    "deleted_at": "2019-02-28T17:07:28.427Z",

```

I restored the post

Header

```plaintext
User-Agent: Discourse/2.3.0.beta2
X-Discourse-Event-Id: 93
X-Discourse-Event-Type: post
X-Discourse-Event: post_recovered

```

Payload

```plaintext
{
  "post": {
    "id": 44144,
    ...
    "deleted_at": null,

```

---

_[View the full topic](https://meta.discourse.org/t/post-destroyed-webhook-event/110259)._
