GET
/
api
/
v2
/
enterprise
/
organizations
/
{org_id}
/
permissions
curl -X GET "https://api.devin.ai/api/v2/enterprise/organizations/org_123/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
}

Returns a paginated list of git repository permissions that a specific organization has access to within your enterprise.

Path Parameters

org_id
string
required

The unique identifier of the organization to get permissions for

Query Parameters

skip
integer
default:"0"

Number of permissions to skip for pagination. Must be >= 0.

limit
integer
default:"100"

Maximum number of permissions to return. Must be between 1 and 1000.

Response

items
array
required

Array of git permission objects for the organization

total
integer
required

Total number of permissions for the organization

skip
integer
required

Number of permissions skipped

limit
integer
required

Maximum number of permissions returned

has_more
boolean
required

Whether there are more permissions available

next_cursor
integer

Cursor for the next page of results

curl -X GET "https://api.devin.ai/api/v2/enterprise/organizations/org_123/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
}