Create webhook endpoint
Create a new webhook endpoint. The response includes the signing secret which is only returned once.
Create a new webhook endpoint. The response includes the signing secret which is only returned once.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
uri1 <= itemsapplication/json
curl -X POST "https://commet.co/api/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com", "events": [ "subscription.created" ] }'application/jsonapplication/json
Destination URL (HTTPS)
Webhook events to subscribe to
Create a new webhook endpoint. The response includes the signing secret which is only returned once.
{
"success": true,
"data": {
"object": "webhook",
"livemode": true,
"id": "string",
"url": "http://example.com",
"events": [
"string"
],
"description": "string",
"isActive": true,
{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}