获取自身机构
GET
/web/v1/workspaces/{workspaceId}/institutions/selfWEB获取当前已认证用户所属的机构。
鉴权
需要有效的 JWT token。网关验证:enableJwtToken=true,enableTurnstile=false。
请求参数
路径参数
| Name | Type | Required | In | Description |
|---|---|---|---|---|
workspaceId | string | Yes | path | 工作空间业务 ID |
成功响应
成功200
{
"code": "2000",
"message": "SUCCESS",
"data": {
"bizId": "inst_abc123",
"institutionName": "Acme Corp",
"institutionDescription": "Main institution",
"institutionRemark": null,
"institutionType": "TENANT",
"institutionStatus": "ACTIVE",
"extraConfig": null,
"createdAt": "2026-03-21T00:00:00Z",
"updatedAt": "2026-03-21T00:00:00Z"
}
}错误响应
| 错误码 | 描述 |
|---|---|
4010 | 未授权(无效或缺少 JWT token) |
4040 | 用户不属于任何机构 |
说明
- 机构从当前用户的安全上下文中解析。