Skip to Content
Developers
API referenceWebhook endpoints

Create a webhook endpoint

Create a webhook endpoint. The response contains the signing secret; it is not shown again.

POST
/webhook-endpoints

Create a webhook endpoint. The response contains the signing secret; it is not shown again.

Authorization

http
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Create (POST) or update (PATCH) a webhook endpoint.

url*string
Formaturi
Lengthlength <= 2048
events*array<>
Items1 <= items
description?|
Lengthlength <= 255
include_personal_data?boolean
status?string
Value in"enabled""disabled"

Response Body

WebhookEndpointResource

application/json
  1. response
id*string
object*string
url*string
description*string|null
events*array<string>
include_personal_data*boolean
status*string
Value in"enabled""disabled"
disabled_reason*string|null
secret?string
created_at*string|null
updated_at*string|null
Example Request
curl -X POST 'https://api.tixxy.nl/v1/webhook-endpoints' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com",  "events": [    "order.created"  ]}'
Example Response
{  "id": "string",  "object": "webhook_endpoint",  "url": "string",  "description": "string",  "events": [    "string"  ],  "include_personal_data": true,  "status": "enabled",  "disabled_reason": "string",  "secret": "string",  "created_at": "string",  "updated_at": "string"}