跳转到主要内容
GET
/
v2
/
enterprise
/
roles
Enterprise Roles Endpoint
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/roles \
  --header 'Authorization: Bearer <token>'
[
  {
    "role_id": "<string>",
    "role_name": "<string>",
    "role_type": "<string>"
  }
]
需要 Enterprise 管理员的个人 API key。 返回你所在 Enterprise 中所有可用角色的列表,包括帐户级别和组织级别角色。每个角色都包含其唯一标识符、显示名称和类型。

Authorizations

Authorization
string
header
required

Personal API Key (apk_user_*) for Enterprise Admins only

Response

200 - application/json

Successful Response

role_id
string
required
role_name
string
required
role_type
string
required