Get a webhook

Get /settings/webhooks/{id}

URL parameters:

Name Description Type Mandatory
id Id of the webhook String Yes

Response:

Webhook node with all informations:

Name Description Type
id Id of the webhook String
url Webhook url String
description Webhook description String
events Events used for the Webhook Array of String
success Number of call in success Int
errors Number of call in error Int
createdAt Creation date String
updatedAt Update date String
Programming language:

Response exemple:

								{
								  "id": "561d21979932836f57bbb894",
								  "url": "http://www.example.com/1444749717",
								  "description": "Webhook description",
								  "createdAt": "1444749719",
								  "updatedAt": "1444749719",
								  "success": 10,
								  "errors": 0,
								  "events": [
								    "clicked",
								    "complaint",
								    "delivered",
								    "error",
								    "hardbounced",
								    "opened",
								    "rejected",
								    "softbounced",
								    "unsubscribed"
								  ]
								}
							

Code example:

								curl -X GET -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/webhooks/55eff0c70cf2d2153ff9733c
							
require 'vendor/autoload.php';

$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');

try {
	
	$result = $tipimail->getSettingsService()->getWebhooksService()->get('646r54g6r4gr6g46g46546d4');
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}