Returns a paginated list of enterprise groups within a specific organization.
Path Parameters
The unique identifier of the organization to get groups for
Query Parameters
Number of groups to skip for pagination. Must be >= 0.
Maximum number of groups to return. Must be between 1 and 1000.
Response
Array of group objects within the organization
Unique identifier for the organization
Role or permission level of the group within the organization (org_admin or org_member)
Total number of groups in the organization
Maximum number of groups returned
Whether there are more groups available
Cursor for the next page of results
curl -X GET "https://api.devin.ai/v2/enterprise/organizations/org_123/groups" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"group_name": "Senior Engineers",
"org_id": "org_123",
"role": "org_admin"
},
{
"group_name": "Junior Engineers",
"org_id": "org_123",
"role": "org_member"
}
],
"total": 2,
"skip": 0,
"limit": 100,
"has_more": false,
"next_cursor": null
}