MG Node Transport API Webhook (1.0.0)

Download OpenAPI specification:Download

Webhook API транспорта MG Node

events Webhook

Request Body schema: application/json
required

Тело запроса вебхука

type
required
string

Тип события вебхука

required
object (WebhookRequestMeta)

Метаданные запроса вебхука

required
object (WebhookMessageSentData)

Данные события вебхука для отправленного сообщения

Responses

Response Schema: application/json
One of
any (WebhookEmptyResponse)

Пустой ответ для событий webhook, не требующих ответа

Request samples

Content type
application/json
Example
{
  • "type": "message_sent",
  • "meta": {
    • "timestamp": 0
    },
  • "data": {
    • "external_user_id": "user123",
    • "external_chat_id": "chat456",
    • "channel_id": 789,
    • "id": 123456789,
    • "type": "text",
    • "content": "Hello, world!",
    • "quote_external_id": "quote123",
    • "quote_content": "This is a quoted message.",
    • "in_app_id": 12345,
    • "user": {},
    • "bot": {},
    • "customer": {},
    • "product": {},
    • "order": {
      },
    • "items": [
      ],
    • "template": {
      },
    • "attachments": {}
    }
}

Response samples

Content type
application/json
Example
null