Webhooks
Setka posts can be automatically exported to your site and updated via webhooks.
Last updated
Setka posts can be automatically exported to your site and updated via webhooks.
Last updated
Webhooks require access to the Setka Cloud API. Contact our customer support to gain access.
To connect your account with a webhook:
Go to Integrations > Integrate Setka Posts > Other CMS.
Click Add Webhook in the Webhook endpoints section.
Specify your webhook endpoint URL in the corresponding field.
Select the notification type below the endpoint URL and hit the Save settings button.
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.
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.
There are several ways of updating and publishing posts.
To publish the post, click the Publish button either on the post's badge in the Posts section of the Setka account
or in the editor itself:
This will notify the Create post webhook endpoint about the new post on the Setka account. The message will include all the post data.
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:
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.