# Setka and Zapier

You can export posts from your [Setka Account ](https://setka.gitbook.io/help-center/account-settings)via [Setka Content Cloud API](https://setka.gitbook.io/help-center/api/getting-posts-from-the-personal-account-with-setka-cloud-api). Setka Zapier integration uses this API to automatically export posts to other services and CMS.

This is how you can set automatic posts export to any CMS with [Zapier](https://zapier.com/) integration, like [Shopify](https://setka.gitbook.io/help-center/integrations/setka-and-zapier/setka-editor-posts-export-to-shopify), Ghost, [Webflow](https://setka.gitbook.io/help-center/integrations/setka-and-zapier/setka-and-webflow), etc.

{% hint style="warning" %}
Zapier integration requires access to the [Setka Content Cloud API](https://setka.gitbook.io/help-center/api/getting-posts-from-the-personal-account-with-setka-cloud-api). Contact our [customer support](https://editor.setka.io/support) to get access.
{% endhint %}

To integrate Setka with other services via Zapier, create Zap with Setka as a trigger:

## Step 1. Add the Setka Post API integration

Zapier connects with Setka via webhooks or by checking the updates in some periods of time. To make the Zapier integration possible, go to the [Setka account](https://editor.setka.io/app) and proceed to **Integrations > Integrate Setka Posts > Other CMS**.

The **Post API** integration will be added. You will see your license key and the ability to add webhooks. This integration will be used in [step 4](#step-4-connect-setka-account).

![Screenshot of Setka interface: Integration via Post API](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MWZ12faLBdonNZ56eLg%2F-MWZ1zJC4bRSFkxBEDjb%2FScreenshot-Setka-Account-Post-API.png?alt=media\&token=879dc03b-009b-4351-a20f-4b7e34c32c16)

## Step 2. Create a new Zap

1\. Open your Zapier account and click **Make a Zap** in a left-hand corner:

![Screenshot of Zapier interface: the "Make a Zap" button](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2JfPSCywcbJz9QNkr%2FMake-Zap-Setka.png?alt=media\&token=eb0f4e31-5305-470d-90b8-4d90815bd905)

2\. Find **Setka** in the list of available apps and set it as a trigger:

![Screenshot of Zapier Interface: searching for Setka app to set it as a trigger](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2JkYHmihfU9VsOujc%2FSetting-Trigger-Setka-Zapier.png?alt=media\&token=5e805323-088e-4847-a2b3-2bd4081881ae)

## Step 3. Choose a trigger event

Find **New post** in a **Trigger Event** list and click **Continue**. This script will work once you publish a new post in your Setka account.

![Screenshot of Zapier interface: "New post" is selected as a trigger event](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2K6eqTN0FPtVIDEbg%2FChoosing-Trigger-Event-Zapier-Zap-Setka-Post.png?alt=media\&token=e5fffb01-47ad-4715-a5ab-145608705636)

### Available trigger events

The zap can be triggered in 3 ways:

#### New Post (Pooling)

Polls Setka account for new posts every few minutes. The period depends on your [Zapier plan](https://zapier.com/app/billing/plans).

#### New Post (REST Hook)

Triggers instantly, if a new post is published on your Setka account.

#### Update Post

Triggers instantly, if some published post from your Setka account is updated.

## Step 4. Connect Setka account

{% hint style="success" %}
If you have already connected your [account](https://setka.gitbook.io/help-center/account-settings/untitled), skip the connection steps. Just select the account from **Choose the account...** dropdown list, as described further.
{% endhint %}

Click **Sign in to Setka** and enter your license key in the appeared window:

![Screenshot of Zapier interface: "Sign in to Setka" button](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2KOIHV6Axqan9aVs7%2FConnecting-Setka-Account-Zapier.png?alt=media\&token=d1061c0f-e6a4-499e-b5b0-0b2770379c82)

The license key can be found on the **Integration via Post API** block of the **Integrations** section in your [Setka account](https://setka.gitbook.io/help-center/account-settings/untitled):

![Screenshot of Setka interface: "Integrations" tab showing your Post API license key](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MWYrey44K2VunGR9WX1%2F-MWYvFECclEpLh5NpHDc%2FScreenshot-Setka-Account-Post-API-Key.png?alt=media\&token=f6d0a4bc-14b5-4f80-a438-7499bbf577a8)

Choose the added account from the appeared list and click **Continue** to go to the next step.&#x20;

![Screenshot of Zapier interface: choosing Setka account in the dropdown](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2Ka7gDzeab7tJnger%2FChoosing-Account-Setka-Zapier.png?alt=media\&token=0a582d0c-64bf-4b95-bb47-6736a272d9b3)

## Step 5. Set up a trigger

{% hint style="success" %}
[Skip this step](#step-6-test-the-trigger), if the [**New Post (REST Hook)**](#new-post-rest-hook) or the [**Update Post**](#update-post) trigger event was selected.
{% endhint %}

Select the event that will trigger the script:

* **Published** — launches if a new post is published.
* **Draft** — launches if post's state is changed to draft.

![Screenshot of Zapier interface: setting up a trigger — choosing "Published" in the Post State dropdown list](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2KwJzQJEiFW5c-cQz%2FPublished-Draft-Posts-Setka-Zapier.png?alt=media\&token=bb3da70b-6f36-4f82-9cab-6ec0d31a6ac9)

## Step 6. Test the trigger

Depending on the chosen [trigger event](#step-3-choose-a-trigger-event), try to publish or update a post in your Setka account.

### Publishing

To publish the post, click the **Publish** button either on the post's badge in the Posts section of the [Setka account](https://editor.setka.io/app)

![](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MYuVbxxcIoGswfW2Wnm%2F-MYuXGisA9QB3w6pEFp-%2FScreenshot-Setka-Account-Interface-Publish-Post.png?alt=media\&token=cc1c84a1-2d8e-4985-90d7-21b03703573c)

or in the editor itself:

![](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MYuVbxxcIoGswfW2Wnm%2F-MYuXS5WMCw1hViXZ1c2%2FScreenshot-Setka-Editor-Publish-Post.png?alt=media\&token=d9e581d4-5352-402d-b58f-0d1326fb7d61)

### Updating

In prior to updating the post, [publish it](#publishing), make some changes and save them by clicking the **Save draft** button.

Then, to update the post, click the **Republish** button on the post editor page:

![](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-M_VuNTHptQKA_1bJ9qx%2F-M_aKR-Wf4yYXv2Dkho-%2FScreenshot-Setka-Editor-Update-Post.png?alt=media\&token=3645283e-0007-4589-a3bf-05816f02a62d)

## Step 7. Add an action for the trigger

Now you can export any post's data to other services integrated with Zapier. To do that, choose any service from the list and set any action needed. You can find full instruction in the [Zapier help center](https://zapier.com/learn/getting-started-guide/build-zap-workflow/).&#x20;

![Screenshot of the Zapier interface: adding an action for a Zap](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MR2IaTosjxop_fSrByl%2F-MR2LBS-3ZwTWMxv3FTh%2FActions-for-Triggers-Zapier-Setka.png?alt=media\&token=5430977f-a2fd-4483-b2b1-7761838aca61)

## What Setka data you can export to Zapier?

Any Setka Cloud API data is available for Zapier. Check a detailed description in the [Cloud API documentation](https://setka.gitbook.io/help-center/api/getting-posts-from-the-personal-account-with-setka-cloud-api).

## Setka data export to other CMS

According to our tests, Setka and Zapier integration works smoothly with Shopify, Webflow, and Ghost, so we are sure that it should work for other CMS integrated with Zapier. You can find detailed instructions for specific CMS in the following articles:

* [Setka Editor and Webflow](https://setka.gitbook.io/help-center/integrations/setka-and-zapier/setka-and-webflow)
* [Setka Editor and Shopify](https://setka.gitbook.io/help-center/integrations/setka-and-zapier/setka-editor-posts-export-to-shopify)
