Create Webhook
Changed onWe use webhooks to let your application know when events happen, such as receiving an SMS message. When the event occurs, the system makes an HTTP request (usually a POST) to the URL you configured for the webhook. The request will include details of the event such as the incoming phone number or the body of an incoming message. Send the request body with a Content-Type of application/json. Parameters such as charset=utf-8 are accepted.
Request
- Base URLhttps://api.transmitmessage.com
- AuthAPI key in header x-api-key
Request body
Example request
{
"filter": {
"event_type": [
"SMS_STATUS",
"SMS_INBOUND"
],
"sender": [
"+61412345678",
"+61487654321"
],
"status": [
"DELIVERED",
"FAILED"
],
"message_ref": [
"ref123",
"ref456"
],
"campaign_id": [
"campaign_123",
"campaign_456"
]
},
"name": "My Webhook",
"url": "https://example.com/webhook"
}Response
Webhook created successfully
Example response
{
"id": "67e3e4af-62e8-4515-8b67-6f20d0c51ffb",
"filter": {
"event_type": [
"SMS_STATUS",
"SMS_INBOUND"
],
"sender": [
"+61412345678",
"+61487654321"
],
"status": [
"DELIVERED",
"FAILED"
],
"message_ref": [
"ref123",
"ref456"
],
"campaign_id": [
"campaign_123",
"campaign_456"
]
},
"name": "Hook",
"url": "https://webhook.site/uuid",
"rate_limit": 10,
"created_at": "2025-04-14T00:59:32.75819Z",
"updated_at": "2025-04-14T00:59:32.75819Z"
}Changes
- warning
added the new
SENDER_COMPLIANCE_STATUSenum value to the//response property for the response status - warning
added the new
SENDER_REGISTRATION_STATUSenum value to the//response property for the response status - info
added the new
SENDER_COMPLIANCE_STATUSenum value to the request property//// - info
added the new
SENDER_COMPLIANCE_STATUSenum value to the request property// - info
added the new
SENDER_REGISTRATION_STATUSenum value to the request property//// - info
added the new
SENDER_REGISTRATION_STATUSenum value to the request property//
- warning
- warning
added the new
PAYMENT_FAILEDenum value to the//response property for the response status - warning
added the new
PAYMENT_SUCCEEDEDenum value to the//response property for the response status - info
added the new
PAYMENT_FAILEDenum value to the request property//// - info
added the new
PAYMENT_FAILEDenum value to the request property// - info
added the new
PAYMENT_SUCCEEDEDenum value to the request property//// - info
added the new
PAYMENT_SUCCEEDEDenum value to the request property//
- warning