Webhook

The simples way to create a log entry on the LogBucket platform

The webhook allows you to create a log entry in the bucket of your choice. It is accessible under the address: https://webhook.logbucket.net/v1arrow-up-right

The webhook accepts HTTPS requests with the method type set to POST and the content type set to 'application/json'. The requsest header must contain an 'X-API-Key' tag with the selected bucket's API key for authentication. Without this, your request will receive a response with an unauthorized request (400) status. The request body must contain data as simple JSON. The only required field is 'message'.

The example below shows you how to post a single log entry to the Log Bucket webhook endpoint using cURL.

Use you bucket's API key in the example below. You find it the 'Datasheet' section of your bucket's page.

curl -X POST \
https://webhook.logbucket.net/v1 \
-H 'Content-Type: application/json' \
-H 'X-API-Key: {put your bucket's API key here}' \
-d '{
	"level": 0,
	"message": "Lorem ipsum dolor sit amet",
	"data": {
		"id": 2359873049347,
		"email": "[email protected]",
	},
	"timestamp": 17000000
}'

Last updated