Feishu / Lark Adapter Configuration
Feishu adapter configuration guide. Supports both Feishu (China) and Lark (International).
Configuration Fields
app_id
- Type:
string - Required: ✅
- Description: Feishu/Lark App ID
app_secret
- Type:
string - Required: ✅
- Description: Feishu/Lark App Secret
encrypt_key
- Type:
string - Required: ❌
- Description: Event encryption key (required when encryption mode is enabled)
verification_token
- Type:
string - Required: ❌
- Description: Event verification Token
endpoint
- Type:
string - Required: ❌
- Default:
https://open.feishu.cn/open-apis - Description: API endpoint URL for switching between Feishu/Lark or private deployment
| Endpoint | URL | Description |
|---|---|---|
| Feishu (default) | https://open.feishu.cn/open-apis | China |
| Lark | https://open.larksuite.com/open-apis | International |
Configuration Examples
Feishu (China)
yaml
feishu.my_bot:
app_id: 'cli_xxxxxxxxxxxxx'
app_secret: 'your_app_secret'
encrypt_key: 'your_encrypt_key' # Optional
verification_token: 'your_verification_token' # Optional
# endpoint can be omitted, defaults to Feishu ChinaLark (International)
yaml
feishu.lark_bot:
app_id: 'cli_xxxxxxxxxxxxx'
app_secret: 'your_app_secret'
endpoint: 'https://open.larksuite.com/open-apis' # Lark endpointTypeScript Configuration
typescript
import { FeishuEndpoint } from '@onebots/adapter-feishu';
// Lark (International)
{
account_id: 'lark_bot',
app_id: 'cli_xxx',
app_secret: 'xxx',
endpoint: FeishuEndpoint.LARK,
}Getting App Credentials
Feishu (China)
- Visit Feishu Open Platform
- Create an enterprise self-built app
- Get
App IDandApp Secretfrom "App Information" - Configure Webhook URL in "Event Subscription":
http://your-server:port/feishu/{account_id}/webhook - Get
Encrypt KeyandVerification Token(if encryption is enabled) - Configure app permissions (message sending/receiving, contacts, etc.)
Lark (International)
- Visit Lark Developer
- Create an application and get credentials
- Configuration is the same as Feishu