When one of your users completes all the tasks in their onboarding checklist, Clice will send a webhook to the URL you’ve specified.

This allows your application to be notified each time an onboarding is completed, so you can update the user’s information in your database accordingly.


1. Where to enter the webhook URL?

In the Onboardings section, click the Actions dropdown menu and choose Integrate.

In the third section, you’ll find the field where you can enter your webhook URL.


2. Webhook details

Here’s how our backend sends the webhook:

fetch(onboardingFinishedEndpoint, {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${apiKey}`,
    },
    body: JSON.stringify({
        userId,
        onboardingName,
    }),
});


Your endpoint must be a POST route that: