For the complete documentation index, see llms.txt. This page is also available as Markdown.

角色與權限

建立角色

POST /api/v1/organizations/{organizationPk}/groups/

參數

參數名稱
必填
類型
說明

organizationPk

✅

string

A UUID string identifying this 組織 ID

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

organization

string (uuid)

否

permissions

array[string]

是

canCreateChatbot

boolean

否

canCreateKnowledgeBase

boolean

否

canCreateInbox

boolean

否

canCreateDatabase

boolean

否

canCreateTool

boolean

否

canCreateAgentUiTool

boolean

否

canCreateSkill

boolean

否

canCreateTeam

boolean

否

Whether members of this role may create Agent Teams; the Team permission is still required.

canCreatePersonalSkill

boolean

否

Whether members of this role may create personal skills (skills only they can see and use). A member in several roles may if any of them allows it. Turning it off keeps existing personal skills but no...

canCreateVoiceAgent

boolean

否

Whether members of this role may create voice agents; the Voice Agent permission is still required.

maigptCanCodeInterpreter

boolean

否

Whether members of this role may use the code interpreter built-in tool in MaiGPT.

maigptCanRag

boolean

否

Whether members of this role may use the knowledge base RAG built-in tool in MaiGPT.

maigptCanDeepResearch

boolean

否

Whether members of this role may use Deep Research in MaiGPT. Deep Research reaches the public internet through its own built-in search, so a role that revokes the official web-search tools needs this...

maigptCanBrowserTool

boolean

否

Whether members of this role may use the browser built-in tool in MaiGPT.

maigptCanCloudDesktop

boolean

否

Whether members of this role may use the cloud desktop in MaiGPT.

maigptAllLlms

boolean

否

Whether members of this role may use every organization-available LLM in MaiGPT. Off = only the bound LLMs; an empty binding then means none.

maigptAllTools

boolean

否

Whether members of this role may call every official (global) tool in MaiGPT. Off = only the bound tools; an empty binding then means none.

maigptAllConnectors

boolean

否

Whether members of this role may call every official (global) MCP connector in MaiGPT. Off = only the bound connectors; an empty binding then means none.

maigptAllSkills

boolean

否

Whether members of this role may use every official (global) skill in MaiGPT. Off = only the bound skills; an empty binding then means none.

usageStatisticsScope

object

否

What this role's usage statistics permission shows: the whole organization, or only the AI assistants granted to the member's roles. A member with any organization-wide granting role sees the whole or...

allowedLlms

array[string]

否

allowedTools

array[string]

否

allowedConnectors

array[string]

否

allowedSkills

array[string]

否

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


批量新增角色成員

POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-members/bulk-create/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

請求內容

請求參數

欄位
類型
必填
說明

members

array[string]

是

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


批量分配 AI 助理給角色

POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-chatbots/bulk-create/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

請求內容

請求參數

欄位
類型
必填
說明

chatbots

array[string]

是

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


批量分配收件匣給角色

POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-inboxes/bulk-create/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

200

No response body


批量分配知識庫給角色

POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-knowledge-bases/bulk-create/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

請求內容

請求參數

欄位
類型
必填
說明

knowledgeBases

array[string]

是

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


批量分配資料庫給角色

POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-databases/bulk-create/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

請求內容

請求參數

欄位
類型
必填
說明

databases

array[string]

是

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


列出權限清單

GET /api/v1/permissions/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色列表

GET /api/v1/organizations/{organizationPk}/groups/

參數

參數名稱
必填
類型
說明

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

type

❌

string

`owner`: Owner ; `default`: Default Role ; `custom`: Custom Role;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色的詳情

GET /api/v1/organizations/{organizationPk}/groups/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Group.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色成員列表

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-members/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


查看特定角色成員

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-members/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group Member.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色的 AI 助理列表

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-chatbots/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色的收件匣列表

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-inboxes/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

channelType

❌

string

`line`: LINE ; `telegram`: Telegram ; `teams`: Teams ; `web`: Web ; `messenger`: Messenger ; `instagram`: Instagram ; `email`: Email ; `whatsapp`: WhatsApp ; `slack`: Slack ; `team_plus`: Team+ ; `lin...

chatbot

❌

string

isActive

❌

boolean

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

程式碼範例

{% tabs %} {% tab title="Shell/Bash" %}

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色的知識庫列表

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-knowledge-bases/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得角色的資料庫列表

GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-databases/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

organizationPk

✅

string

A UUID string identifying this 組織 ID

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

search

❌

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新角色權限

PUT /api/v1/organizations/{organizationPk}/groups/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Group.

organizationPk

✅

string

A UUID string identifying this 組織 ID

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

organization

string (uuid)

否

permissions

array[string]

是

canCreateChatbot

boolean

否

canCreateKnowledgeBase

boolean

否

canCreateInbox

boolean

否

canCreateDatabase

boolean

否

canCreateTool

boolean

否

canCreateAgentUiTool

boolean

否

canCreateSkill

boolean

否

canCreateTeam

boolean

否

Whether members of this role may create Agent Teams; the Team permission is still required.

canCreatePersonalSkill

boolean

否

Whether members of this role may create personal skills (skills only they can see and use). A member in several roles may if any of them allows it. Turning it off keeps existing personal skills but no...

canCreateVoiceAgent

boolean

否

Whether members of this role may create voice agents; the Voice Agent permission is still required.

maigptCanCodeInterpreter

boolean

否

Whether members of this role may use the code interpreter built-in tool in MaiGPT.

maigptCanRag

boolean

否

Whether members of this role may use the knowledge base RAG built-in tool in MaiGPT.

maigptCanDeepResearch

boolean

否

Whether members of this role may use Deep Research in MaiGPT. Deep Research reaches the public internet through its own built-in search, so a role that revokes the official web-search tools needs this...

maigptCanBrowserTool

boolean

否

Whether members of this role may use the browser built-in tool in MaiGPT.

maigptCanCloudDesktop

boolean

否

Whether members of this role may use the cloud desktop in MaiGPT.

maigptAllLlms

boolean

否

Whether members of this role may use every organization-available LLM in MaiGPT. Off = only the bound LLMs; an empty binding then means none.

maigptAllTools

boolean

否

Whether members of this role may call every official (global) tool in MaiGPT. Off = only the bound tools; an empty binding then means none.

maigptAllConnectors

boolean

否

Whether members of this role may call every official (global) MCP connector in MaiGPT. Off = only the bound connectors; an empty binding then means none.

maigptAllSkills

boolean

否

Whether members of this role may use every official (global) skill in MaiGPT. Off = only the bound skills; an empty binding then means none.

usageStatisticsScope

object

否

What this role's usage statistics permission shows: the whole organization, or only the AI assistants granted to the member's roles. A member with any organization-wide granting role sees the whole or...

allowedLlms

array[string]

否

allowedTools

array[string]

否

allowedConnectors

array[string]

否

allowedSkills

array[string]

否

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新角色權限

PATCH /api/v1/organizations/{organizationPk}/groups/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Group.

organizationPk

✅

string

A UUID string identifying this 組織 ID

請求內容

請求參數

欄位
類型
必填
說明

name

string

否

organization

string (uuid)

否

permissions

array[string]

否

canCreateChatbot

boolean

否

canCreateKnowledgeBase

boolean

否

canCreateInbox

boolean

否

canCreateDatabase

boolean

否

canCreateTool

boolean

否

canCreateAgentUiTool

boolean

否

canCreateSkill

boolean

否

canCreateTeam

boolean

否

Whether members of this role may create Agent Teams; the Team permission is still required.

canCreatePersonalSkill

boolean

否

Whether members of this role may create personal skills (skills only they can see and use). A member in several roles may if any of them allows it. Turning it off keeps existing personal skills but no...

canCreateVoiceAgent

boolean

否

Whether members of this role may create voice agents; the Voice Agent permission is still required.

maigptCanCodeInterpreter

boolean

否

Whether members of this role may use the code interpreter built-in tool in MaiGPT.

maigptCanRag

boolean

否

Whether members of this role may use the knowledge base RAG built-in tool in MaiGPT.

maigptCanDeepResearch

boolean

否

Whether members of this role may use Deep Research in MaiGPT. Deep Research reaches the public internet through its own built-in search, so a role that revokes the official web-search tools needs this...

maigptCanBrowserTool

boolean

否

Whether members of this role may use the browser built-in tool in MaiGPT.

maigptCanCloudDesktop

boolean

否

Whether members of this role may use the cloud desktop in MaiGPT.

maigptAllLlms

boolean

否

Whether members of this role may use every organization-available LLM in MaiGPT. Off = only the bound LLMs; an empty binding then means none.

maigptAllTools

boolean

否

Whether members of this role may call every official (global) tool in MaiGPT. Off = only the bound tools; an empty binding then means none.

maigptAllConnectors

boolean

否

Whether members of this role may call every official (global) MCP connector in MaiGPT. Off = only the bound connectors; an empty binding then means none.

maigptAllSkills

boolean

否

Whether members of this role may use every official (global) skill in MaiGPT. Off = only the bound skills; an empty binding then means none.

usageStatisticsScope

object

否

What this role's usage statistics permission shows: the whole organization, or only the AI assistants granted to the member's roles. A member with any organization-wide granting role sees the whole or...

allowedLlms

array[string]

否

allowedTools

array[string]

否

allowedConnectors

array[string]

否

allowedSkills

array[string]

否

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除角色

DELETE /api/v1/organizations/{organizationPk}/groups/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Group.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


移除角色成員

DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-members/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group Member.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


移除角色裡的 AI 助理

DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-chatbots/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group Chatbot.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


移除角色裡的收件匣

DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-inboxes/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group Inbox.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


移除角色裡的知識庫

DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-knowledge-bases/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group KnowledgeBase.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


移除角色裡的資料庫

DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/group-databases/{id}/

參數

參數名稱
必填
類型
說明

groupPk

✅

string

id

✅

string

A UUID string identifying this Group Database.

organizationPk

✅

string

A UUID string identifying this 組織 ID

程式碼範例

回應內容

狀態碼
說明

204

No response body


最後更新於

這有幫助嗎?