···51515252Gitea token scopes are as follows:
53535454-| Name | Description |
5555-| ---- |--------------------------------------------------------------------------------------------------------------------------------------------------|
5656-| **(no scope)** | Not supported. A scope is required even for public repositories. |
5757-| **activitypub** | `activitypub` API routes: ActivityPub related operations. |
5858-| **read:activitypub** | Grants read access for ActivityPub operations. |
5959-| **write:activitypub** | Grants read/write/delete access for ActivityPub operations. |
6060-| **admin** | `/admin/*` API routes: Site-wide administrative operations (hidden for non-admin accounts). |
6161-| **read:admin** | Grants read access for admin operations, such as getting cron jobs or registered user emails. |
6262-| **write:admin** | Grants read/write/delete access for admin operations, such as running cron jobs or updating user accounts. | |
6363-| **issue** | `issues/*`, `labels/*`, `milestones/*` API routes: Issue-related operations. |
6464-| **read:issue** | Grants read access for issues operations, such as getting issue comments, issue attachments, and milestones. |
6565-| **write:issue** | Grants read/write/delete access for issues operations, such as posting or editing an issue comment or attachment, and updating milestones. |
6666-| **misc** | miscellaneous and settings top-level API routes. |
6767-| **read:misc** | Grants read access to miscellaneous operations, such as getting label and gitignore templates. |
6868-| **write:misc** | Grants read/write/delete access to miscellaneous operations, such as markup utility operations. |
6969-| **notification** | `notification/*` API routes: user notification operations. |
7070-| **read:notification** | Grants read access to user notifications, such as which notifications users are subscribed to and read new notifications. |
7171-| **write:notification** | Grants read/write/delete access to user notifications, such as marking notifications as read. |
7272-| **organization** | `orgs/*` and `teams/*` API routes: Organization and team management operations. |
7373-| **read:organization** | Grants read access to org and team status, such as listing all orgs a user has visibility to, teams, and team members. |
7474-| **write:organization** | Grants read/write/delete access to org and team status, such as creating and updating teams and updating org settings. |
7575-| **package** | `/packages/*` API routes: Packages operations |
7676-| **read:package** | Grants read access to package operations, such as reading and downloading available packages. |
7777-| **write:package** | Grants read/write/delete access to package operations. Currently the same as `read:package`. |
7878-| **repository** | `/repos/*` API routes except `/repos/issues/*`: Repository file, pull-request, and release operations. |
7979-| **read:repository** | Grants read access to repository operations, such as getting repository files, releases, collaborators. |
8080-| **write:repository** | Grants read/write/delete access to repository operations, such as getting updating repository files, creating pull requests, updating collaborators. |
8181-| **user** | `/user/*` and `/users/*` API routes: User-related operations. |
8282-| **read:user** | Grants read access to user operations, such as getting user repo subscriptions and user settings. |
8383-| **write:user** | Grants read/write/delete access to user operations, such as updating user repo subscriptions, followed users, and user settings. |
5454+| Name | Description |
5555+| ---- |------------------------------------------------------------------------------------------------------------------------------------------------------|
5656+| **(no scope)** | Not supported. A scope is required even for public repositories. |
5757+| **activitypub** | `activitypub` API routes: ActivityPub related operations. |
5858+| **read:activitypub** | Grants read access for ActivityPub operations. |
5959+| **write:activitypub** | Grants read/write/delete access for ActivityPub operations. |
6060+| **admin** | `/admin/*` API routes: Site-wide administrative operations (hidden for non-admin accounts). |
6161+| **read:admin** | Grants read access for admin operations, such as getting cron jobs or registered user emails. |
6262+| **write:admin** | Grants read/write/delete access for admin operations, such as running cron jobs or updating user accounts. |
6363+| **issue** | `issues/*`, `labels/*`, `milestones/*` API routes: Issue-related operations. |
6464+| **read:issue** | Grants read access for issues operations, such as getting issue comments, issue attachments, and milestones. |
6565+| **write:issue** | Grants read/write/delete access for issues operations, such as posting or editing an issue comment or attachment, and updating milestones. |
6666+| **misc** | Reserved for future usage. |
6767+| **read:misc** | Reserved for future usage. |
6868+| **write:misc** | Reserved for future usage. |
6969+| **notification** | `notification/*` API routes: user notification operations. |
7070+| **read:notification** | Grants read access to user notifications, such as which notifications users are subscribed to and read new notifications. |
7171+| **write:notification** | Grants read/write/delete access to user notifications, such as marking notifications as read. |
7272+| **organization** | `orgs/*` and `teams/*` API routes: Organization and team management operations. |
7373+| **read:organization** | Grants read access to org and team status, such as listing all orgs a user has visibility to, teams, and team members. |
7474+| **write:organization** | Grants read/write/delete access to org and team status, such as creating and updating teams and updating org settings. |
7575+| **package** | `/packages/*` API routes: Packages operations |
7676+| **read:package** | Grants read access to package operations, such as reading and downloading available packages. |
7777+| **write:package** | Grants read/write/delete access to package operations. Currently the same as `read:package`. |
7878+| **repository** | `/repos/*` API routes except `/repos/issues/*`: Repository file, pull-request, and release operations. |
7979+| **read:repository** | Grants read access to repository operations, such as getting repository files, releases, collaborators. |
8080+| **write:repository** | Grants read/write/delete access to repository operations, such as getting updating repository files, creating pull requests, updating collaborators. |
8181+| **user** | `/user/*` and `/users/*` API routes: User-related operations. |
8282+| **read:user** | Grants read access to user operations, such as getting user repo subscriptions and user settings. |
8383+| **write:user** | Grants read/write/delete access to user operations, such as updating user repo subscriptions, followed users, and user settings. |
84848585## Client types
8686
+1-1
models/auth/token_scope.go
···1616const (
1717 AccessTokenScopeCategoryActivityPub = iota
1818 AccessTokenScopeCategoryAdmin
1919- AccessTokenScopeCategoryMisc
1919+ AccessTokenScopeCategoryMisc // WARN: this is now just a placeholder, don't remove it which will change the following values
2020 AccessTokenScopeCategoryNotification
2121 AccessTokenScopeCategoryOrganization
2222 AccessTokenScopeCategoryPackage