Smstools
 

API

Guides

Messages

Voice

WhatsApp Business

Groups

Contacts

Outbox

Account

Sender IDs

Teammate/Subaccount

Conversations

Message Templates

Birthday Message

Opt-out

Other

Webhooks (v2)

Get webhook

Base URL:

GET: https://api.smsgatewayapi.com/v1/webhook/{ID}

Example:

GET: https://api.smsgatewayapi.com/v1/webhook/115113
ParameterInputDescription
client_idAPI client IDLogin and go to 'Developer' - 'API & Webhooks' - 'API-credentials' to find the API keys
Required
client_secretAPI client secretLogin and go to 'Developer' - 'API & Webhooks' - 'API-credentials' to find the API keys
Required
IDWebhook IDThe ID of the webhook
Required
<?php
	//PHP - cURL			
	$ch = curl_init();
	$url = "https://api.smsgatewayapi.com/v1/webhook/{ID}";
	$client_id = "XXX"; // Your API client ID (required)
	$client_secret = "YYY"; // Your API client secret (required)
	
curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_POST, false); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "X-Client-Id: $client_id", "X-Client-Secret: $client_secret", "Content-Type: application/json", ]); $response = curl_exec($ch); ?>

Example success response:

[{
	"webhook_id": "wh_a9b56720-7adc-4c78-a04d-62521d1d3b09",
	"webhook_type": "delivery_report",
	"username": "myusername",
	"method": "POST",
	"created": "2026-01-01 09:00:06",
	"created_utc": "2026-01-01 08:00:06",
	"timezone": "Europe/Brussels",
	"message": {
		"messageid": "e1qk89exbzgf6fzfunceym2sd67h88",
		"datetime": "2026-01-01 09:00:00",
		"content": "here comes your message body",
		"sender": "yoursender",
		"receiver": "32470123456",
		"reference": "yourref",
		"message_type": "sms",                                      [Possible values: sms, whatsapp, phonecall]
		"delivery_code": "1",                                       [Possible values: 0,1,2,3,4,9]
		"delivery_status": "delivered",                             [code explanation]
		"delivery_status_datetime": "2026-01-01 09:00:05",
		"delivery_code_detail": "10",                               [only present when not delivered]
		"delivery_code_detail_description": "Unknown Subscriber",   [only present when not delivered]
		"cost": 1,                                                  [only for prepaid accounts]
		"cost_type": "credits"                                      [credits or balance]
	}
}]

SMS gateway API

Smstools
Bulk SMS gateway integreren via onze SMS API. Hiermee kan je jouw software verbinden met onze SMS gateway om Bulk SMS berichten te versturen en ontvangen. Gratis testaccount. Start direct! SMS gateway API
5 van de 5 op basis van 3294 gebruikersbeoordelingen.
SMSGATEWAYAPI API1

REGISTREER NU

Probeer onze geavanceerde SMS software & API vandaag!

Probeer nu gratis