Create Webhook
create_webhookRegister a webhook to receive real-time notifications for events like invoice creation or payment. Specify the endpoint URL and choose events to subscribe.
Instructions
Register a new webhook endpoint. You must specify the URL to receive notifications and which events to subscribe to. Available events: invoice.created, invoice.updated, invoice.paid, invoice.deleted, expense.created, expense.updated, expense.deleted, client.created, client.updated, quote.created, quote.updated, quote.accepted. Example: url='https://example.com/webhook', events=['invoice.created','invoice.paid'], secret='my-secret' / Registra un nuevo endpoint de webhook. Especifica la URL y los eventos a suscribir.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook endpoint URL / URL del endpoint del webhook | |
| active | No | Whether the webhook is active (default: true) / Si el webhook esta activo | |
| events | Yes | Events to subscribe to (e.g. ['invoice.created', 'invoice.paid']) / Eventos a suscribir | |
| secret | No | Signing secret for payload verification / Secreto para verificar las notificaciones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| active | No | ||
| events | Yes | ||
| secret | No | ||
| createdAt | No | ||
| updatedAt | No |