Loading...
Loading...
Feishu Approval. Create approval instances and query approval status.
npx skill4agent add alextangson/feishu_skills feishu-approvalhttps://open.feishu.cn/open-apis/approval/v4| API | Endpoint | Method | Request Body Example | Description |
|---|---|---|---|---|
| Create Instance | | POST | | Initiate approval |
| Query Instance | | GET | - | Get approval status |
| Approval Action | | POST | | Approve/Reject approval |
| Cancel Approval | | POST | | Applicant cancels approval |
| Transfer Approval | | POST | | Transfer to another person |
| Urge Approval | | POST | - | Send reminder for approval |
| Get Instance List | | GET | Query Parameters: | Supports filter parameters (pagination) |
| Query Instance Details | | POST | | Query complete details |
{
"approval_code": "7C468A54-8745-2245-9675-08B7C63E7A85",
"user_id": "ou_xxx",
"form": "{\"widget1\":\"Request 3 days of leave\"}"
}| API | Endpoint | Method | Request Body Example | Description |
|---|---|---|---|---|
| Get Task List | | GET | - | Query pending tasks |
| Get Task Details | | GET | - | Query task details |
| Approve Task | | POST | | Process approval task |
| Transfer Task | | POST | | Transfer task |
| API | Endpoint | Method | Request Body Example | Description |
|---|---|---|---|---|
| Get Definition List | | GET | - | Query all approval templates |
| Get Definition Details | | GET | - | Query template details |
| Get Definition Form | | GET | - | Query form field definitions |
| API | Endpoint | Method | Request Body Example | Description |
|---|---|---|---|---|
| Get CC List | | GET | - | Query approvals copied to me |
| Mark CC as Read | | POST | - | Mark CC as read |
| API | Endpoint | Method | Request Body Example | Description |
|---|---|---|---|---|
| Add Comment | | POST | | Add approval comment |
| Get Comments | | GET | - | Query comment list |
open_iduser_idunion_idpage_sizepage_tokenPENDINGAPPROVEDREJECTEDCANCELEDDELETEDcurl -X GET "https://open.feishu.cn/open-apis/approval/v4/approvals?page_size=10" \
-H "Authorization: Bearer YOUR_TOKEN"curl -X POST "https://open.feishu.cn/open-apis/approval/v4/instances" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"approval_code": "7C468A54-8745-2245-9675-08B7C63E7A85",
"user_id": "ou_xxx",
"form": "{\"widget1\":\"Request 3 days of leave\"}"
}'curl -X GET "https://open.feishu.cn/open-apis/approval/v4/instances?page_size=20&user_id=ou_xxx" \
-H "Authorization: Bearer YOUR_TOKEN"