Building a Custom Connector
Implement the ConnectorDefinition interface to integrate a third-party app that Fastn doesn't support out of the box.
The ConnectorDefinition interface
import { ConnectorDefinition } from '@fastn/connectors';
const myConnector: ConnectorDefinition = {
name: 'my-app',
displayName: 'My App',
description: 'Integration with My App API',
auth: {
type: 'oauth2', // or 'api_key', 'basic', 'bearer_token', 'custom', 'none'
// auth-specific configuration
},
actions: {
// what the connector can do
},
triggers: {
// what events the connector can listen for
},
entities: {
// what data types the connector works with
}
};Step 1: Scaffold the connector
Step 2: Define authentication
No Auth
Basic Auth
Bearer Token
API Key
OAuth 2.0
Custom
Step 3: Define actions
Step 4: Define entities
Step 5: Define triggers (optional)
Step 6: Register the connector
Step 7: Test the connector
Capability declaration
What you've built
Last updated
Was this helpful?

