Webhook
Call a URL whenever you create, update or delete a post on Able.
Last updated
Call a URL whenever you create, update or delete a post on Able.
Last updated
Able provides a webhook that lets you call any URL whenever you create, update or delete a post on Able. This is a convenient way to use the Able editor as a writing interface for other services.
Your webhook can be created and managed under the Posts settings page of your account. You can also find a shortcut to your webhook settings from the editor’s options sidebar (click ••• in the editor).
A webhook on Able has the following settings that can be configured.
When a webhook is enabled and you create or update a post on Able then a POST
request is made to the specified Production or Test URL whenever you create, update or delete a post.
The request will include Authorization: Bearer <token>
in the header which you can use to verify that the request has come from Able. Here's an example of a typical request body:
When deleting a post on Able, a DELETE
request will be sent.
Requests will only be made if the appropriate event is enabled in your webhook settings. Additionally, if you have enabled the condition setting to only make requests when your post is set to published
then requests will not be made if your post set to draft status.
If you want to get familiar with what a webhook request looks like then we’d recommend using a simple service like Webhook.site to quickly create an endpoint and point your Able webhook at it.
When the webhook url gets called from the editor your will see a toast notification pop out that shows the HTTP status code and response from the server. This can be handy for debugging integrations.
We also have a Push to GitHub extension which you can use to push webhook requests into a GitHub repository that you specify.
Setting
Explanation
Enabled
This is a global flag to enable webhook calls whenever you save, update or delete posts. When disabled, no webhook calls will be made. Be aware that there are some additional settings lower down that can limit the webhook from being called. For example: Events and Conditions.
Production URL
This is the URL that you can use to point to your production webhook handler.
Test URL
You might want to make changes to your handler and test these while still keeping your Production URL set. So you can use the Test URL for this instead.
Test mode
When enabled, the webhook will call the Test URL instead of the Production URL.
Format
Choose whether you want the webhook call to contain your post content as HTML or Markdown.
Events
You can specify which events should fire the webhook call. For example when posts are created
, updated
and deleted
Conditions
These are extra conditions that can limit when the webhook makes a request. For example, if you only want to make requests when your post is set to published
.