---
title: "Webhooks"
description: "Receive signed events when chat, data, or billing changes."
canonical_url: "https://docs.vettero.com/developer-api/webhooks"
---
# Webhooks

> Receive signed events when chat, data, or billing changes.

Open **Settings → API access** and create a webhook. The URL must be `https`. Pick the events. Leave workspace ids empty to receive every workspace, or list workspace ids to limit delivery.

The signing secret is shown once. Vettero stores it so it can sign later deliveries. It is not shown again.

## Delivery

Vettero `POST`s JSON:

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      Event id (UUID)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      Event name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        createdAt
      </code>
    </td>
    
    <td>
      ISO time
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        companyId
      </code>
    </td>
    
    <td>
      Company id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceId
      </code>
    </td>
    
    <td>
      Workspace <strong>
        slug
      </strong>
      
      , or null for company billing events
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Event-specific fields. Shape differs per <code>
        type
      </code>
    </td>
  </tr>
</tbody>
</table>

Headers:

<table>
<thead>
  <tr>
    <th>
      Header
    </th>
    
    <th>
      Value
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        X-Vettero-Event
      </code>
    </td>
    
    <td>
      Event name (same as <code>
        type
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        X-Vettero-Signature
      </code>
    </td>
    
    <td>
      <code>
        sha256=
      </code>
      
       plus HMAC-SHA256 of the <strong>
        raw body
      </strong>
      
      , using the webhook secret
    </td>
  </tr>
</tbody>
</table>

Respond with a 2xx status. Other statuses are retried.

Verify the signature against the exact raw body bytes. Do not re-serialize JSON before hashing.

## Events

Chat: `session.started`, `session.ended`, `message.created`, `handover.requested`, `handover.accepted`, `handover.released`.

Runs: `run.completed`, `run.failed`, `run.waiting`.

Approvals: `approval.requested`, `approval.approved`, `approval.rejected`, `approval.submitted`.

Tables: `row.inserted`, `row.updated`, `row.deleted`, `row.archived`, `field.changed`.

Knowledge: `kb.ingest.completed`, `kb.ingest.failed`.

Notifications: `notification.created`.

Channels: `channel.message.received`, `call.started`, `call.ended`.

Schedules: `schedule.fired`.

Billing: `subscription.activated`, `subscription.renewed`, `subscription.canceled`, `subscription.payment_failed`, `wallet.recharged`, `wallet.low`, `credits.purchased`, `credits.low`, `credits.depleted`, `quota.reached`, `invoice.ready`.

The same event names are listed on `GET /api/developer/openapi.json` as `x-webhook-events`, and the delivery shape is under the OpenAPI `webhooks` section.


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
