# CleverTap

**Easily synchronize user segments from CleverTap to Apxor**

## Step 1: Create Webhook

1. Navigate to *Settings* > *Engage* > *Channels*> *Webhooks*.

![](https://300211688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuYbJ9bg7CFtrBaVp9pB%2Fuploads%2FSfT83Tv4YabrYPd0OkxL%2FCleverTap_Create_Webhook.png?alt=media\&token=7bb731fc-3876-4a9c-aa40-6396aefb132d)

1. Click on Add Webhook button in the top right corner
2. You will get a pop up to create webhook template
3. Select **POST** method and enter the following as the destination URL – (enter your Apxor app-id in place of \<app-id>). [Know how to get app id.](https://guides.apxor.com/getting-started-with-apxor/adding-a-new-app#step-5-copy-the-application-identifier)

   <mark style="color:green;"><https://server.apxor.com/v1/track/external/clever-tap/sync/\\><app-id></mark>
4. Enable basic authorization and enter the username and password provided by the Apxor Team.

   Contact your Apxor CSM or email us at <mark style="color:blue;">**<contact@apxor.com>**</mark>
5. Click on Create button and the webhook gets created.

![](https://300211688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuYbJ9bg7CFtrBaVp9pB%2Fuploads%2FOV01OUq1fnwPpjZ8Lj89%2F1.png?alt=media)

## Step 2: Creating a webhook campaign

1. Now we will create a webhook campaign that transfers users data through the newly created webhook. Navigate to the campaign section and create your webhook campaign as shown in image below.

   ![](https://300211688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuYbJ9bg7CFtrBaVp9pB%2Fuploads%2FidSRSrfnTzDv6BbUAMU9%2FCleverTap_Webhook_Campaign.png?alt=media\&token=5cb92fd4-5718-4078-9bc2-6566da877865)
2. Complete the sections provided and make sure you have selected correct webhook under webhook section
3. Under <mark style="color:orange;">**What**</mark> Section click on <mark style="color:orange;">**Go To Editor**</mark> button
4. Add a custom attribute with field name <mark style="color:orange;">apx\_cohort\_name</mark> and enter a name for your cohort
5. Let all other fields be as it is.
6. Use **Preview & Test** to test it out.

   ![](https://300211688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuYbJ9bg7CFtrBaVp9pB%2Fuploads%2F5iW8U5HjRK2HEmjbYBsL%2F3.png?alt=media)
7. After finishing all sections go to publish campaign and click on it

   ![](https://300211688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuYbJ9bg7CFtrBaVp9pB%2Fuploads%2F2UkCYfScULbkHqOWecnl%2F4.png?alt=media)
8. Within a few minutes after publishing the campaign, there will be a new dynamic cohort added to your Apxor application dashboard. Use this cohort to target the right audience for your Apxor campaigns.

For more information refer to the CleverTap [documentation](https://docs.clevertap.com/docs/setup-webhooks).
