MG Node Transport API Webhook (1.0.0)

Download OpenAPI specification:Download

MG Node Transport API Webhook

events Webhook

Request Body schema: application/json
required

Webhook request body

type
required
string

Type of webhook event

required
object (WebhookRequestMeta)

Metadata for webhook request

required
object (WebhookMessageSentData)

Webhook event data for a message being sent

Responses

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

Empty response for webhook events that do not require a response

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