集成 API
管理工作空间级别的集成配置(Git、CI/CD 等)。
列出集成
http
GET /api/v1/workspaces/{workspace_id}/integrations
Authorization: Bearer <token>配置集成
http
PUT /api/v1/workspaces/{workspace_id}/integrations/{type}
Content-Type: application/json
{
"config": {
"url": "https://github.com",
"token": "ghp_..."
},
"enabled": true
}支持的集成类型
| 类型 | 说明 |
|---|---|
github | GitHub 代码托管 |
gitlab | GitLab 代码托管 |
jira | Jira 项目管理 |
smtp | 邮件发送 |
测试连接
http
POST /api/v1/workspaces/{workspace_id}/integrations/{type}/test配置继承
工作空间集成配置继承自组织级配置,并可覆盖。详见组织集成。