Webhooks and the API

Webhooks send events from Vensel to your own servers as they happen: new sessions, messages, handoffs, resolutions and finished workflow runs. API keys let your apps and scripts call Vensel. This article is for developers and admins who connect Vensel to their own systems.

Add a webhook endpoint

  1. Go to Settings › Webhooks.
  2. Under Endpoint, enter the Endpoint URL. Vensel POSTs each event to this address; HTTPS only.
  3. Click Save changes.
  4. Under Signing secret, click Reveal, then Copy signing secret. Use it to check that each delivery came from Vensel.
  5. Click Send a test. A test.webhook event is delivered to your endpoint.

To send events to more than one place, click Add endpoint and choose which events each endpoint receives (none selected means all events).

Events

The Events table lists what your endpoint can receive:

  • session.created: a new session (ticket) was created.
  • session.message.created: a message was added to a session.
  • session.handoff: the AI handed a session to the human team.
  • session.resolved: a session was closed as resolved.
  • session.assigned: a session was assigned or unassigned.
  • session.tags.updated: tags were added or removed.
  • session.updated: any other change to a session.
  • workflow.run.completed: a workflow run finished.
  • test.webhook: sent when you click Send a test.

Verify and troubleshoot deliveries

  • Events are sent as JSON and signed with HMAC-SHA256. Each request carries webhook-id, webhook-timestamp and webhook-signature headers (the Standard Webhooks format).
  • The Delivery log shows the last 50 deliveries. Click Resend to send one again.
  • Failed deliveries are retried 7 times over about 28 hours.
  • Saving a different URL creates a new signing secret, so update your server too.

Create an API key

  1. Go to Settings › API tokens.
  2. Click New API key and name it so you know where it is used.
  3. Choose Full access or pick the scopes the key needs.
  4. Click Generate and copy the key now. You will not see it again.

Send the key as Authorization: Bearer <key>. Today API keys are used for widget sign-in of your users (verified identity, needs the contacts:write scope), the Talkdesk integration and the help-center CLI. To stop a key, click Revoke; anything using it stops working at once.

Good to know

  • You need the Webhooks (Write) permission to change endpoints, and the API keys permission to manage keys.
  • Webhook endpoints must be reachable from the internet; private network addresses are refused.
  • Workflows can also call your systems with the Send Webhook and Make HTTP request steps.

Related