Create a new webhook
Register a new webhook with the system.
POST
Parameters
Body
application/jsonName
REQUIRED
Descriptive name of the webhook.
Type
REQUIRED
Enum representing the available webhook types.
Url
REQUIRED
URL endpoint where webhook events are sent.
Is_active
Whether the webhook is active.
Addresses
List of addresses being tracked, null if not an address activity webhook.
Template_ids
List of templates being tracked, null if not a template activity webhook.
Actions
List of actions being tracked, null if not an action activity webhook.
| Status code | Description |
|---|---|
| 200 | Successfully created resource with its unique identifier |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 500 | Internal server error - an unexpected error occurred on the server |
cURL
curl -L -X POST \"https://blockv-labs.io/webhooks" \-H 'Accept: application/json'
Response
{"id": "string"}
json
{"type": "object","required": ["id"],"properties": {"id": {"type": "string","description": "Unique identifier of the created resource"}}}