Skip to main content

Overview

Clarion delivers all webhooks for your organization to one endpoint. You configure that endpoint (URL and optional secret) using the endpoints below. A single payload field, webhook_event, tells your receiver which event triggered the delivery. See End of Call and End of Sequence Report for the payload shapes.

Delivery Model

  • One URL per organization. Every webhook Clarion sends goes to this URL.
  • Opt-in per agent / campaign. Whether a given voice agent or sequence definition emits a webhook is a separate per-entity setting managed in the Clarion dashboard. If the agent or campaign has webhooks disabled, no delivery is attempted.
  • Secret is optional. If you set a secret, Clarion includes it as an X-Clarion-Secret header on every request so your receiver can verify the caller. Every request is also signed; see Verifying Webhook Signatures.

Where to Read Webhook Configuration

Use GET /config/organization/webhook to read webhook settings.
Read responses never include the webhook secret. They return has_secret instead. If your integration previously read secret from GET /config/organization, GET /config/organization/webhook, or a PUT response, store the secret yourself when you set it and verify deliveries using the X-Clarion-Secret header (or ECDSA signatures).

Get the Current Webhook Configuration

GET
GET /config/organization/webhook
Returns the organization’s current webhook configuration, or null if none is set.

Response

integer
The unique identifier for the webhook configuration row.
integer
The organization this webhook belongs to.
string
The endpoint Clarion will POST webhook payloads to.
boolean
Whether a shared secret is configured. When true, Clarion sends it in the X-Clarion-Secret header on deliveries.
string
ISO 8601 timestamp when the configuration was created.
string
ISO 8601 timestamp when the configuration was last updated.

Create or Update the Webhook Configuration

PUT
PUT /config/organization/webhook
Upserts the organization’s webhook configuration. If a row exists it is updated; otherwise it is created.

Request Body

string
required
The endpoint Clarion will POST webhook payloads to. Must be reachable from the public internet.
string | null
Optional shared secret. When set, Clarion sends it in the X-Clarion-Secret header on every delivery.Write behavior: omit the field to leave the stored secret unchanged; pass a string to set or replace the secret; pass null to remove it.

Response

Returns the saved configuration, with the same shape as GET /config/organization/webhook.

Delete the Webhook Configuration

DELETE
DELETE /config/organization/webhook
Removes the organization’s webhook configuration. After deletion, Clarion stops delivering webhooks for the organization until a new configuration is created. Returns 204 No Content.