Event Reference
Event envelope
Every webhook delivery wraps the payload in a standard envelope:
{ "id": "evt_abc123", "eventType": "subscription.created", "timestamp": "2024-01-15T10:00:00.000Z", "data": { ... }}Built-in events
subscription.created
Fired when a new subscription is created.
{ "eventType": "subscription.created", "data": { "subscriptionId": "sub_abc", "name": "Acme Corp", "productId": "prod_xyz", "productName": "ConnectWise PSA API", "plan": "professional", "scope": "write", "createdAt": "2024-01-15T10:00:00.000Z" }}subscription.revoked
Fired when a subscription is revoked.
{ "eventType": "subscription.revoked", "data": { "subscriptionId": "sub_abc", "name": "Acme Corp", "revokedAt": "2024-01-20T14:30:00.000Z" }}product.published
Fired when a product status changes to active.
{ "eventType": "product.published", "data": { "productId": "prod_xyz", "name": "ConnectWise PSA API", "category": "integration", "tags": ["PSA", "REST"] }}agent.run.completed
Fired when an agent run finishes (success or error).
{ "eventType": "agent.run.completed", "data": { "agentId": "agent_abc", "agentName": "Ticket Analyst", "message": "How many open tickets for Acme?", "result": "Acme Corp has 3 open tickets...", "iterations": 2, "success": true, "completedAt": "2024-01-15T10:05:04.231Z" }}job.run.completed
Fired when a scheduled job finishes.
{ "eventType": "job.run.completed", "data": { "jobId": "job_abc", "jobName": "Daily Ticket Summary", "runId": "run_001", "status": "success", "output": "Summarized 12 open tickets...", "duration": 4231, "completedAt": "2024-01-15T09:00:04.231Z" }}Custom events
Dispatch any event type with arbitrary payload:
POST /api/webhooks/dispatch{ "eventType": "custom.my_event", "payload": { "anything": "you want", "nested": { "data": true } }}Event type naming convention: resource.action (e.g. ticket.resolved, alert.triggered).