# Webhook и Gotify

**URL:** <https://meta.discourse.org/t/webhook-gotify/344766>\
**Category:** Product Support\
**Tags:** webhooks\
**Created:** [29.Декабрь.2024 17:02:47 UTC](https://meta.discourse.org/t/webhook-gotify/344766 "2024-12-29T17:02:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Markus\_Lajos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markus_lajos/32/457293_2.png) [@Markus\_Lajos](https://meta.discourse.org/u/Markus_Lajos)\
**Post date:** [29.Декабрь.2024 17:02:47 UTC](https://meta.discourse.org/t/webhook-gotify/344766/1 "2024-12-29T17:02:47Z")

</div>

**Это то, что отправляется в Gotify**

```plaintext
Request URL: https://notify.ynm.hu
Request method: POST
Accept: */*
Connection: close
Content-Length: 1922
Content-Type: application/json
Host: notify.ynm.hu
User-Agent: Discourse/3.4.0.beta4-dev
X-Discourse-Instance: https://forum.ynm.hu
X-Discourse-Event-Id: 194
X-Discourse-Event-Type: post
X-Discourse-Event: post_destroyed

```

### Payload

````plaintext
{
  "post": {
    "id": 301,
    "name": "Markus Lajos",
    "username": "markus",
    "avatar_template": "/user_avatar/forum.ynm.hu/markus/{size}/3_2.png",
    "created_at": "2024-12-29T16:53:45.524Z",
    "cooked": "<h3><a name=\"p-301-headers-1\" class=\"anchor\" href=\"#p-301-headers-1\"></a>Заголовки</h3>\n<pre><code class=\"lang-auto\">date: Sun, 29 Dec 2024 16:50:21 GMT\nserver: Apache\ncontent-type: application/json\ncontent-length: 88\nconnection: close\n</code></pre>\n<h3><a name=\"p-301-body-2\" class=\"anchor\" href=\"#p-301-body-2\"></a>Тело</h3>\n<pre><code class=\"lang-auto\">{\"error\":\"Bad Request\",\"errorCode\":400,\"errorDescription\":\"Field 'message' is required\"}\n</code></pre>",
    "post_number": 3,
    "post_type": 1,
    "updated_at": "2024-12-29T16:53:45.524Z",
    "reply_count": 0,
    "reply_to_post_number": null,
    "quote_count": 0,
    "incoming_link_count": 0,
    "reads": 1,
    "score": 0.2,
    "topic_id": 57,
    "topic_slug": "loged-py-jellyfin-gotfy-sopel-php",
    "topic_title": "Loged.py (Jellyfin&amp;Gotfy&amp;Sopel) + Php",
    "category_id": 6,
    "display_username": "Markus Lajos",
    "primary_group_name": null,
    "flair_name": null,
    "flair_group_id": null,
    "version": 1,
    "user_title": "",
    "bookmarked": false,
    "raw": "### Заголовки\n\n```\ndate: Sun, 29 Dec 2024 16:50:21 GMT\nserver: Apache\ncontent-type: application/json\ncontent-length: 88\nconnection: close\n```\n\n### Тело\n\n```\n{\"error\":\"Bad Request\",\"errorCode\":400,\"errorDescription\":\"Field 'message' is required\"}\n```",
    "moderator": true,
    "admin": true,
    "staff": true,
    "user_id": 1,
    "hidden": false,
    "trust_level": 1,
    "deleted_at": "2024-12-29T16:57:14.977Z",
    "deleted_by": {
      "id": 1,
      "username": "markus",
      "name": "Markus Lajos",
      "avatar_template": "/user_avatar/forum.ynm.hu/markus/{size}/3_2.png"
    },
    "user_deleted": false,
    "edit_reason": null,
    "wiki": false,
    "reviewable_id": null,
    "reviewable_score_count": 0,
    "reviewable_score_pending_count": 0,
    "topic_posts_count": 1,
    "topic_filtered_posts_count": 1,
    "topic_archetype": "regular",
    "category_slug": "ynm-ai-sopel-plugins"
  }
}

````

**А это ответ от Gotify**

### Заголовки

```plaintext
date: Sun, 29 Dec 2024 16:57:15 GMT
server: Apache
content-type: application/json
content-length: 73
connection: close

```

### Тело

```plaintext
{"error":"Not Found","errorCode":404,"errorDescription":"page not found"}

```

Похоже, там нет поля “message”. Можешь это исправить?

---

_[View the full topic](https://meta.discourse.org/t/webhook-gotify/344766)._
