> For the complete documentation index, see [llms.txt](https://setka.gitbook.io/help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://setka.gitbook.io/help-center/api/setka-webhooks.md).

# Webhooks

Setka posts can be automatically exported to your site and updated via webhooks.

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

To connect your account with a webhook:

1. Go to **Integrations > Integrate Setka Posts > Other CMS**.
2. Click **Add Webhook** in the **Webhook endpoints** section.
3. Specify your webhook endpoint URL in the corresponding field.
4. Select the [notification type](/help-center/api/setka-webhooks.md#available-notification-types) below the endpoint URL and hit the **Save settings** button.

![](https://1843290185-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLOEPbfEK4119w2ROYc%2F-MYuXvwQyX_OQoIYDpwo%2F-MYuZwyhKfGgCjBAdOO3%2FScreenshot-Setka-Account-Integrations-Add-Weebhook.png?alt=media\&token=9ffd1d8f-dce1-475f-aa4b-cf4eecb0bc3c)

## Available notification types

* **Create post** — notifies the endpoint if some new post is published on your account.
* **Update post** — notifies the endpoint if some of the earlier published posts were updated.

## Available data

The data sent via webhooks is similar to the one you can get via Content Cloud API. Thus you can get:

* The post's title and HTML code.
* The links to related CSS, JS, and media files.
* Auxiliary data, such as author name, publication date, and reading time.

{% hint style="info" %}
Check the [Content Cloud API documentation](/help-center/api/getting-posts-from-the-personal-account-with-setka-cloud-api.md#h_01EQDC5WKH1VTM6X69TRSDTAMJ) for more info about the data received.
{% endhint %}

## Publishing and updating posts

There are several ways of updating and publishing posts.

### 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)

![Screenshot of the Setka Editor interface: publishing the post](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:

![Screenshot of the Setka Editor interface: publishing the post](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)

This will notify the [**Create post**](/help-center/api/setka-webhooks.md#available-notification-types) webhook endpoint about the new post on the Setka account. The message will include all the [post data](/help-center/api/setka-webhooks.md#available-data).

### Updating

Before updating the post, [publish it](/help-center/api/setka-webhooks.md#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:

![Screenshot of the Setka Editor interface: updating the post](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)

This will notify the [**Update post**](/help-center/api/setka-webhooks.md#available-notification-types) webhook endpoint about the changes in the specific post on the Setka account. The message will include all the [post data](/help-center/api/setka-webhooks.md#available-data).
