Webhooks

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

Webhooks require access to the Setka Cloud API. Contact our customer support to gain access.

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 below the endpoint URL and hit the Save settings button.

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.

Check the Content Cloud API documentation for more info about the data received.

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

Screenshot of the Setka Editor interface: publishing the post

or in the editor itself:

Screenshot of the Setka Editor interface: publishing the post

This will notify the Create post webhook endpoint about the new post on the Setka account. The message will include all the post data.

Updating

Before updating the post, publish it, 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

This will notify the Update post webhook endpoint about the changes in the specific post on the Setka account. The message will include all the post data.