Webhooks
Post Webhooks
Detailed information about post webhook events including post.created and post.updated.
post.created
The post.created event is triggered when a new post is created in the system.
Event Properties
| Property | Type | Description |
|---|---|---|
| id | string | Unique identifier for the post (UUID) |
| title | string | Title of the post |
| subtitle | string | Subtitle of the post |
| excerpt | string | Brief excerpt of the post content |
| state | string | Current state of the post |
| created_at | string | Timestamp when the post was created |
| updated_at | string | Timestamp when the post was last updated |
| slug | string | URL-friendly identifier for the post |
| published | boolean | Indicates whether the post is published |
Example Payload
This example shows a typical payload that you'll receive when a new post is created. All timestamps are in ISO 8601 format and UTC timezone.
{
"type": "post.created",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Getting Started with Webhooks",
"subtitle": "A comprehensive guide",
"excerpt": "Learn how to integrate and use webhooks effectively...",
"state": "draft",
"created_at": "2024-03-21T13:45:30Z",
"updated_at": "2024-03-21T13:45:30Z",
"slug": "getting-started-with-webhooks",
"published": false
}
}post.updated
The post.updated event is triggered when an existing post is modified in the system.
Event Properties
| Property | Type | Description |
|---|---|---|
| id | string | Unique identifier for the post (UUID) |
| title | string | Title of the post |
| subtitle | string | Subtitle of the post |
| excerpt | string | Brief excerpt of the post content |
| state | string | Current state of the post |
| created_at | string | Timestamp when the post was created |
| updated_at | string | Timestamp when the post was last updated |
| slug | string | URL-friendly identifier for the post |
| published | boolean | Indicates whether the post is published |
Example Payload
This example shows a typical payload that you'll receive when a post is updated. All timestamps are in ISO 8601 format and UTC timezone.
{
"type": "post.updated",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Getting Started with Webhooks - Updated",
"subtitle": "A comprehensive guide to webhook integration",
"excerpt": "Learn how to integrate and use webhooks effectively in your applications...",
"state": "published",
"created_at": "2024-03-21T13:45:30Z",
"updated_at": "2024-03-21T14:30:15Z",
"slug": "getting-started-with-webhooks",
"published": true
}
}