Skip to content

feat(feishu): add simple HTTP notification endpoint#1232

Open
YvanJiang wants to merge 1 commit intoagentscope-ai:mainfrom
YvanJiang:feature/feishu-notification
Open

feat(feishu): add simple HTTP notification endpoint#1232
YvanJiang wants to merge 1 commit intoagentscope-ai:mainfrom
YvanJiang:feature/feishu-notification

Conversation

@YvanJiang
Copy link

Summary

Add a simple HTTP endpoint for sending notifications to Feishu from external systems.

Use Cases

  • Monitoring alerts (Zabbix, Prometheus)
  • CI/CD pipeline notifications
  • Scheduled task status updates

Features

  • Simple POST endpoint
  • Environment variable configuration for target chat/user
  • Queues message for agent processing by simulating webhook events

Endpoints

Method Path Description
POST `/api/v1/notify/feishu` Send notification

Configuration

Environment variables:

  • `FEISHU_NOTIFY_CHAT_ID` - Target group chat ID
  • `FEISHU_NOTIFY_OPEN_ID` - Target user open ID

Examples

```bash

Query parameter

curl -X POST "http://localhost:8000/api/v1/notify/feishu?message=Server%20Alert\u0026source=Zabbix\"

JSON body

curl -X POST http://localhost:8000/api/v1/notify/feishu
-H "Content-Type: application/json"
-d '{"message": "Server Alert", "source": "Zabbix"}'
```

Dependencies

Requires PR #3 (Feishu Webhook Support) for `handle_webhook_event()` method.

Related

Split from PR #1063

🤖 Generated with Claude Code

Add a simple HTTP endpoint for sending notifications to Feishu.
Useful for external systems like monitoring alerts.

Features:
- POST endpoint for sending text messages
- Environment variable configuration
- Queues for agent processing via webhook event simulation

Endpoint: POST /api/v1/notify/feishu
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor PR created by a first time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants