How to Send Webhooks From Clientish to Zapier or Your Server

5 min read

Add an endpoint, pick from 10 events, send a test, verify the HMAC signature, follow deliveries, and connect Zapier.

Clientish webhooks send your workspace’s events to another app the moment they happen. When an order is placed or an invoice is paid, Clientish POSTs the details to a URL you choose, such as a Zapier hook, a Make scenario or your own server, signed so you can trust it.

Applies to: every plan (Solo, Starter, Growth, Pro and Enterprise), up to 10 endpoints per workspace
Who can do it: only the workspace owner adds and manages webhooks, under Webhooks & API in the sidebar

Before You Begin

  • An HTTPS URL that can receive a POST request, for example a Zapier “Catch Hook” URL or an endpoint on your own server

How to Add a Webhook Endpoint in Clientish

Open Webhooks & API → Webhooks, add the endpoint URL, check the events, save and test, then copy the signing secret.

  1. Open Webhooks

    In the sidebar, click Webhooks & API and open the Webhooks tab. Click Add endpoint.

    Connect Zapier and Add endpoint buttons on the Clientish Webhooks tab
  2. Enter the endpoint URL

    Paste the URL that should receive the events. It must start with https://. Add a description so you know later what it is for, such as “Zapier: new orders to Google Sheets”.

    Endpoint URL and description when adding a Clientish webhook
  3. Choose the events

    Check the events this endpoint should receive. Each group shows how many you picked.

    Clientish webhook events: orders, invoices, tickets, clients and leads
  4. Save and send a test

    Tick Send a test event after saving if you want to check the URL right away, then click Add endpoint.

    Send a test event after saving and Add endpoint button in Clientish
  5. Copy the signing secret

    The signing secret is shown only once. Click Copy and store it with your app. Every delivery is signed with it, so your app can check that it really came from your workspace. The ready-made code shows how (Node.js).

    Lost it? Issue a new secret from Edit endpoint.

    Clientish webhook signing secret shown once, with code to check the signature
  6. Follow the deliveries

    Deliveries lists every event sent to your endpoints, with filters for Delivered, Retrying and Failed. Failed deliveries are retried 5 times over about 15 hours, and the log is kept for 30 days.

    Clientish webhook deliveries log with delivered, retrying and failed filters

Which Events Can Clientish Webhooks Send?

There are 10 events, across orders, invoices, tickets, clients and leads:

  • order.created: A new order is placed
  • order.status_changed: An order moves to another status
  • order.completed: An order is completed
  • invoice.created: An invoice is created
  • invoice.paid: An invoice is paid
  • invoice.overdue: An invoice passes its due date
  • ticket.created: A client opens a ticket
  • ticket.replied: Someone replies on a ticket
  • client.created: A client is added
  • lead.created: A lead comes in

How to Verify a Webhook Signature

Build an HMAC-SHA256 from the delivery and compare it with its signature header. Each delivery carries two headers: clientish-timestamp and clientish-signature. Hash the timestamp, a dot and the raw request body using your signing secret. If it matches clientish-signature, the delivery is genuine. If not, reject it.

How to Use Clientish Webhooks With Zapier

Either pick the Clientish app in your Zap, or catch a webhook. The Clientish app on Zapier needs no webhook URL. Click Connect Zapier on the Webhooks tab, then Create key for Zapier, and click Start a Zap with Clientish: the Zap opens with Clientish already picked, and you sign in by pasting that key (see Create an API key). The app is in early access, so the first time you accept the invite from the link next to the button. To use a webhook instead, start a Zap with Webhooks by Zapier → Catch Hook and copy the URL it gives you. Add that URL as an endpoint here, check the events, and keep Send a test event after saving checked. Back in Zapier, click Test trigger and map the fields. The Zapier tab walks through these steps.

How Many Events Should One Endpoint Get?

Only the events that app needs.

i

One endpoint per app keeps the delivery log easy to read.

Why Do Webhook Deliveries Fail?

A delivery fails when your URL doesn’t respond with a 2xx status.

!

Open the endpoint’s deliveries to see the response your server sent. Failed deliveries are retried automatically.

Questions About Clientish Webhooks

How many endpoints can I add?⌄
Up to 10 per workspace. The counter above the Endpoints list shows how many you have used.
Can I pause an endpoint?⌄
Yes. Use the buttons on the endpoint’s row to pause it, edit it or view its deliveries.
Do webhooks send my data anywhere else?⌄
No. Events go only to the URLs you add, and each delivery is signed with that endpoint’s secret.

Related