跳转到主要内容
GET
/
v2
/
enterprise
/
roles
企业版角色端点
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/roles \
  --header 'Authorization: Bearer <token>'
[
  {
    "role_id": "<string>",
    "role_name": "<string>",
    "role_type": "<string>"
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.devin.ai/llms.txt

Use this file to discover all available pages before exploring further.

需要 Enterprise 管理员的个人 API key。 返回你所在 Enterprise 中所有可用角色的列表,包括 Enterprise 级别和组织级别角色。每个角色都包含其唯一标识符、显示名称和类型。

授权

Authorization
string
header
必填

仅供 Enterprise 管理员使用的个人 API Key(apk_user_*)

响应

200 - application/json

成功的响应

role_id
string
必填
role_name
string
必填
role_type
string
必填