# Sent message webhook This webhook sends you information about sent messages. You can use this webhook to save information about sent messages, such as message_id, gateway, timestamp, payload, etc. Endpoint: POST sentMessage Version: v2 ## Request fields (application/json): - `request_id` (string) Example: "bc36f3d1-d284-463a-921b-a3560c154649" - `message_id` (string) Unique message identifier. (if you use /messages endpoint, then you will receive message_id with - appended to the message_id). Example: "e27ff0ac-87b5-4e1d-b644-5fc6029e2a11" - `gateway` (string) Used flow for the message. Enum: "sms", "viber", "whatsapp_text", "whatsapp_template" - `timestamp` (integer) Example: 1700000000 - `payload` (object) Example: {"campaign_id":"winter-sale"} - `type` (string) - `to` (object) - `to.phone_number` (string) Example: "420777123456" - `result` (string) Result of the message sending. First, you will receive sent status, then another statuses will follow. If the message is rejected, that means that the message was not even sent (typical reason is insufficient credit or invalid phone number). Enum: "delivered", "undelivered", "rejected", "failed", "sending", "sent", "seen" - `result_info` (string) Additional result code for the message in format "[code] Description". Code is optional, description is also optional. Result info can also contain only code inside square brackets or only description without code. - `sms` (object) - `sms.gateway` (string) Used specific gateway settings for the message. - `sms.sender` (string) Used sender for the message. - `sms.country` (integer) Used country for the message (official MCC code). - `sms.operator` (integer) Used operator for the message (official MNC code or 0 for unknown/general operator). - `sms.price_czk` (number) Price of the message in CZK. - `sms.price_eur` (number) Price of the message in EUR. - `sms.count` (integer) Count of the parts (how many billed messages were sent). - `whatsapp_template` (object) - `viber` (object) - `whatsapp_body` (object)