Quick Start
Install the plugin:corsair.ts
Authentication
Supported Auth Types
The Linear plugin supports:api_key(default) - Use a Linear API key
Default Auth Type
If noauthType is specified, the plugin defaults to api_key.
Configuring API Key Authentication
Store credentials with the CLI:Webhook Signature Verification
Linear webhooks can be secured using HMAC signature verification. Store the secret with the CLI:Options
The Linear 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) |
hooks | object | Endpoint hooks for custom logic |
webhookHooks | object | Webhook hooks for event handling |
errorHandlers | object | Custom error handlers |
Hooks
Hooks allow you to add custom logic before and after API calls:Error Handling
The plugin includes built-in error handlers for common scenarios like rate limiting, authentication errors, and network failures. For complete documentation, see the Error Handlers reference.Usage
Accessing the API
The Linear API is organized into resource-based endpoints:Webhooks
Set up webhook event handlers to respond to changes in Linear:Database Access
The plugin automatically syncs data to your database. Query synced data:Multi-Tenancy
Use the plugin with multiple tenants:Examples
Example 1: Create Issue from External Event
corsair.ts
inngest/functions.ts
Example 2: Sync Issue Updates to Slack
corsair.ts
inngest/functions.ts
Example 3: Auto-Assign Issues by Priority
corsair.ts