Quick Start
Install the plugin:corsair.ts
Authentication
Supported Auth Types
The PostHog plugin uses API key authentication.api_key(default) - Project API key authentication
API Key Setup
Store credentials with the CLI:Webhook Secret
Store the webhook secret with the CLI:Options
The PostHog plugin accepts the following configuration options:| Option | Type | Description |
|---|---|---|
authType | 'api_key' | Authentication method (defaults to 'api_key') |
key | string | API key (optional, uses database if not provided) |
webhookSecret | string | Webhook signing secret (optional) |
hooks | object | Endpoint hooks for custom logic |
webhookHooks | object | Webhook hooks for event handling |
errorHandlers | object | Custom error handlers |