LogoFreestyle
API Reference/Git

List repository permissions for an identity

List repository permissions for an identity. This will return a list of repositories that the identity has access to.

GET/git/v1/identity/{identity}/permissions

Path Parameters

identityRequiredstring

Query Parameters

limitinteger

Maximum number of repositories to return

Minimum: 0Format: "int64"
offsetinteger

Offset for the list of repositories

Minimum: 0Format: "int64"
curl -X GET "https://api.freestyle.sh/git/v1/identity/<string>/permissions?limit=0&offset=0"

Permission list

{
  "repositories": [
    {
      "id": "string",
      "name": "string",
      "accountId": "string",
      "permissions": "read",
      "visibility": "public"
    }
  ]
}