Returns a paginated list of git repository permissions that a specific organization has access to within your enterprise.
Path Parameters
The unique identifier of the organization to get permissions for
Query Parameters
Number of permissions to skip for pagination. Must be >= 0.
Maximum number of permissions to return. Must be between 1 and 1000.
Response
Array of git permission objects for the organizationShow Git Permission Object
Unique identifier for the permission
Git host (e.g., “github.com”, “gitlab.com”)
Repository path or pattern (null for organization-wide permissions)
Group prefix for the permission (null if not applicable)
Total number of permissions for the organization
Number of permissions skipped
Maximum number of permissions returned
Whether there are more permissions available
Cursor for the next page of results
curl -X GET "https://api.devin.ai/v2/enterprise/organizations/org_123/git/permissions" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"permission_id": "perm_123",
"host": "github.com",
"repo_path": "company/backend-api",
"group_prefix": null
},
{
"permission_id": "perm_456",
"host": "github.com",
"repo_path": "company/frontend-app",
"group_prefix": null
},
{
"permission_id": "perm_789",
"host": "gitlab.com",
"repo_path": null,
"group_prefix": "engineering"
}
],
"total": 3,
"skip": 0,
"limit": 100,
"has_more": false,
"next_cursor": null
}