- Docs
- Api%2Freference%2Fwebhooks%2FCreateWebhook
Create a new webhook
Register a new webhook with the system.
AuthorizationBearer <token>
In: header
Request Body
application/json
Webhook configuration details.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api-testnet.dual.network/webhooks" \ -H "Content-Type: application/json" \ -d '{ "name": "My Webhook", "type": "template_activity", "url": "https://webhook.site/example" }'{
"id": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}