Webhook Integration
Receive blog posts via webhooks for external publishing
Webhook Endpoint
Blog News campaigns can send generated blog posts to your webhook endpoint at:
POST https://example.com/api/webhook/receivePayload Structure
The webhook receives a JSON payload with the following structure:
{
"day": 1,
"blog": {
"title": "Generated Blog Title",
"content": "MDX formatted article content...",
"tags": ["tag1", "tag2", "tag3"]
},
"timestamp": "2024-01-15T10:30:00.000Z"
}Request Details
- Method: POST
- Content-Type: application/json
- Timeout: 10 seconds
- Success Response: HTTP 200-299 status codes
Security
- Webhook URLs should use HTTPS for secure transmission
- Consider implementing authentication (API keys, tokens) in your webhook endpoint
- Validate incoming payload structure before processing
- Webhook failures don't prevent blog generation - blogs are saved regardless
Retry Mechanism
If a webhook fails, you can manually retry sending:
- Webhook status is displayed in the blog view
- "Retry Webhook" button available for failed webhooks
- Retry updates the webhook status automatically
