Webhook
Webhooks enable real-time information flow between applications when specific events occur. Think of webhooks as "reverse APIs" - instead of requesting information, Quotion pushes information to you when important events happen.
This feature allows you to:
- Get notified when a note is updated/deleted
- Build custom documentation sites
- Create dynamic blogs
- Develop content-driven applications
- Implement real-time content management systems (CMS)
Setup Requirements
Prerequisites
- HTTP server supporting POST requests (HTTPS required)
- Database for note storage (recommended):
- SQL: PostgreSQL, MySQL
- NoSQL: MongoDB
- Cache: Redis
- Alternative: Memory cache or local file storage
Configuration Steps
- Access Quotion dashboard
- Navigate to site settings
- Set webhook URL and authorization header
- Save configuration
After saving, your HTTP server will receive events within 2 minutes of any site note changes.
Implementation Guide
Security Verification
Always verify webhook requests using the authorization header. Here's a Next.js example:
Webhook Payload Structure
Example webhook event payload:
Payload Properties
-
site: Identifies the event source
id
: Unique site identifiersubdomain
: Site subdomain
-
posts: Array of note events
type
: Event type (added
orremoved
)md
: Note content in markdown formattags
: Note tags, separated by commas- Additional metadata:
title
,draft
,featured
, etc.
FAQs
Need Additional Features?
For custom requirements or additional event types: Contact Support