Gitea API.
  1. notification
Gitea API.
  • admin
    • List cron tasks
      GET
    • Run cron task
      POST
    • List all organizations
      GET
    • List unadopted repositories
      GET
    • Delete unadopted files
      DELETE
    • Adopt unadopted files as a repository
      POST
    • List all users
      GET
    • Create a user
      POST
    • Delete a user
      DELETE
    • Edit an existing user
      PATCH
    • Add a public key on behalf of a user
      POST
    • Delete a user's public key
      DELETE
    • Create an organization
      POST
    • Create a repository on behalf of a user
      POST
  • miscellaneous
    • Render a markdown document as HTML
      POST
    • Render raw markdown as HTML
      POST
    • Get default signing-key.gpg
      GET
    • Returns the version of the Gitea application
      GET
  • notification
    • List users's notification threads
      GET
    • Mark notification threads as read, pinned or unread
      PUT
    • Check if unread notifications exist
      GET
    • Get notification thread by ID
      GET
    • Mark notification thread as read by ID
      PATCH
    • List users's notification threads on a specific repo
      GET
    • Mark notification threads as read, pinned or unread on a specific repo
      PUT
  • organization
    • Create a repository in an organization
      POST
    • Get list of organizations
      GET
    • Create an organization
      POST
    • Delete an organization
      DELETE
    • Get an organization
      GET
    • Edit an organization
      PATCH
    • List an organization's webhooks
      GET
    • Create a hook
      POST
    • Delete a hook
      DELETE
    • Get a hook
      GET
    • Update a hook
      PATCH
    • List an organization's labels
      GET
    • Create a label for an organization
      POST
    • Delete a label
      DELETE
    • Get a single label
      GET
    • Update a label
      PATCH
    • List an organization's members
      GET
    • Remove a member from an organization
      DELETE
    • Check if a user is a member of an organization
      GET
    • List an organization's public members
      GET
    • Conceal a user's membership
      DELETE
    • Check if a user is a public member of an organization
      GET
    • Publicize a user's membership
      PUT
    • List an organization's repos
      GET
    • Create a repository in an organization
      POST
    • List an organization's teams
      GET
    • Create a team
      POST
    • Search for teams within an organization
      GET
    • Delete a team
      DELETE
    • Get a team
      GET
    • Edit a team
      PATCH
    • List a team's members
      GET
    • Remove a team member
      DELETE
    • List a particular member of team
      GET
    • Add a team member
      PUT
    • List a team's repos
      GET
    • Remove a repository from a team
      DELETE
    • Add a repository to a team
      PUT
    • List the current user's organizations
      GET
    • List a user's organizations
      GET
  • issue
    • Search for issues across the repositories that the user has access to
    • List a repository's issues
    • Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
    • List all comments in a repository
    • Delete a comment
    • Get a comment
    • Edit a comment
    • Remove a reaction from a comment of an issue
    • Get a list of reactions from a comment of an issue
    • Add a reaction to a comment of an issue
    • Get an issue
    • Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
    • List all comments on an issue
    • Add a comment to an issue
    • Delete a comment
    • Edit a comment
    • Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
    • Remove all labels from an issue
    • Get an issue's labels
    • Add a label to an issue
    • Replace an issue's labels
    • Remove a label from an issue
    • Remove a reaction from an issue
    • Get a list reactions of an issue
    • Add a reaction to an issue
    • Delete an issue's existing stopwatch.
    • Start stopwatch on an issue.
    • Stop an issue's existing stopwatch.
    • Get users who subscribed on an issue.
    • Check if user is subscribed to an issue
    • Unsubscribe user from issue
    • Subscribe user to issue
    • Reset a tracked time of an issue
    • List an issue's tracked times
    • Add tracked time to a issue
    • Delete specific tracked time
    • Get all of a repository's labels
    • Create a label
    • Delete a label
    • Get a single label
    • Update a label
    • Get all of a repository's opened milestones
    • Create a milestone
    • Delete a milestone
    • Get a milestone
    • Update a milestone
  • repository
    • Migrate a remote git repository
    • Search for repositories
    • Delete a repository
    • Get a repository
    • Edit a repository's properties. Only fields that are set will be changed.
    • Get an archive of a repository
    • Return all users that have write access and can be assigned to issues
    • List branch protections for a repository
    • Create a branch protections for a repository
    • Delete a specific branch protection for the repository
    • Get a specific branch protection for the repository
    • Edit a branch protections for a repository. Only fields that are set will be changed
    • List a repository's branches
    • Create a branch
    • Delete a specific branch from a repository
    • Retrieve a specific branch from a repository, including its effective branch protection
    • List a repository's collaborators
    • Delete a collaborator from a repository
    • Check if a user is a collaborator of a repository
    • Add a collaborator to a repository
    • Get a list of all commits from a repository
    • Get a commit's combined status, by branch/tag/commit reference
    • Get a commit's statuses, by branch/tag/commit reference
    • Gets the metadata of all the entries of the root dir
    • Delete a file in a repository
    • Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
    • Create a file in a repository
    • Update a file in a repository
    • Get the EditorConfig definitions of a file in a repository
    • List a repository's forks
    • Fork a repository
    • Gets the blob of a repository.
    • Get a single commit from a repository
    • Get a note corresponding to a single commit from a repository
    • Get specified ref or filtered repository's refs
    • Get specified ref or filtered repository's refs
    • Gets the tag object of an annotated tag (not lightweight tags)
    • Gets the tree of a repository.
    • List the hooks in a repository
    • Create a hook
    • List the Git hooks in a repository
    • Delete a Git hook in a repository
    • Get a Git hook
    • Edit a Git hook in a repository
    • Delete a hook in a repository
    • Get a hook
    • Edit a hook in a repository
    • Test a push webhook
    • Get available issue templates for a repository
    • List a repository's keys
    • Add a key to a repository
    • Delete a key from a repository
    • Get a repository's key by id
    • Get languages and number of bytes of code written
    • Sync a mirrored repository
    • List a repo's pull requests
    • Create a pull request
    • Get a pull request
    • Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
    • Get a pull request diff
    • Get a pull request patch file
    • Get commits for a pull request
    • Check if a pull request has been merged
    • Merge a pull request
    • cancel review requests for a pull request
    • create review requests for a pull request
    • List all reviews for a pull request
    • Create a review to an pull request
    • Delete a specific review from a pull request
    • Get a specific review for a pull request
    • Submit a pending review to an pull request
    • Get a specific review for a pull request
    • Dismiss a review for a pull request
    • Cancel to dismiss a review for a pull request
    • Merge PR's baseBranch into headBranch
    • Get a file from a repository
    • List a repo's releases
    • Create a release
    • Delete a release by tag name
    • Get a release by tag name
    • Delete a release
    • Get a release
    • Update a release
    • List release's attachments
    • Create a release attachment
    • Delete a release attachment
    • Get a release attachment
    • Edit a release attachment
    • Return all users that can be requested to review in this repo
    • Get signing-key.gpg for given repository
    • List a repo's stargazers
    • Get a commit's statuses
    • Create a commit status
    • List a repo's watchers
    • Unwatch a repo
    • Check if the current user is watching a repo
    • Watch a repo
    • List a repository's tags
    • Create a new git tag in a repository
    • Delete a repository's tag by name
    • Get the tag of a repository by tag name
    • List a repository's teams
    • Delete a team from a repository
    • Check if a team is assigned to a repository
    • Add a team to a repository
    • List a repo's tracked times
    • List a user's tracked times in a repo
    • Get list of topics that a repository has
    • Replace list of topics for a repository
    • Delete a topic from a repository
    • Add a topic to a repository
    • Transfer a repo ownership
    • Create a repository using a template
    • Get a repository by id
    • search topics via keyword
    • Create a repository
  • settings
    • Get instance's global settings for api
    • Get instance's global settings for Attachment
    • Get instance's global settings for repositories
    • Get instance's global settings for ui
  • user
    • Get the authenticated user
    • List the authenticated user's oauth2 applications
    • creates a new OAuth2 application
    • delete an OAuth2 Application
    • get an OAuth2 Application
    • update an OAuth2 Application, this includes regenerating the client secret
    • Delete email addresses
    • List the authenticated user's email addresses
    • Add email addresses
    • List the authenticated user's followers
    • List the users that the authenticated user is following
    • Unfollow a user
    • Check whether a user is followed by the authenticated user
    • Follow a user
    • Get a Token to verify
    • Verify a GPG key
    • List the authenticated user's GPG keys
    • Create a GPG key
    • Remove a GPG key
    • Get a GPG key
    • List the authenticated user's public keys
    • Create a public key
    • Delete a public key
    • Get a public key
    • List the repos that the authenticated user owns
    • Get user settings
    • Update user settings
    • The repos that the authenticated user has starred
    • Unstar the given repo
    • Whether the authenticated is starring the repo
    • Star the given repo
    • Get list of all existing stopwatches
    • List repositories watched by the authenticated user
    • List all the teams a user belongs to
    • List the current user's tracked times
    • Search for users
    • Check if one user is following another user
    • Get a user
    • List the given user's followers
    • List the users that the given user is following
    • List the given user's GPG keys
    • Get a user's heatmap
    • List the given user's public keys
    • List the repos owned by the given user
    • The repos that the given user has starred
    • List the repositories watched by a user
    • List the authenticated user's access tokens
    • Create an access token
    • delete an access token
  1. notification

List users's notification threads on a specific repo

GET
/repos/{owner}/{repo}/notifications
notification
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/repos///notifications'
Response Response Example
[
    {
        "id": 0,
        "pinned": true,
        "repository": {
            "allow_merge_commits": true,
            "allow_rebase": true,
            "allow_rebase_explicit": true,
            "allow_squash_merge": true,
            "archived": true,
            "avatar_url": "string",
            "clone_url": "string",
            "created_at": "2019-08-24T14:15:22Z",
            "default_branch": "string",
            "default_merge_style": "string",
            "description": "string",
            "empty": true,
            "external_tracker": {
                "external_tracker_format": "string",
                "external_tracker_style": "string",
                "external_tracker_url": "string"
            },
            "external_wiki": {
                "external_wiki_url": "string"
            },
            "fork": true,
            "forks_count": 0,
            "full_name": "string",
            "has_issues": true,
            "has_projects": true,
            "has_pull_requests": true,
            "has_wiki": true,
            "html_url": "string",
            "id": 0,
            "ignore_whitespace_conflicts": true,
            "internal": true,
            "internal_tracker": {
                "allow_only_contributors_to_track_time": true,
                "enable_issue_dependencies": true,
                "enable_time_tracker": true
            },
            "mirror": true,
            "mirror_interval": "string",
            "name": "string",
            "open_issues_count": 0,
            "open_pr_counter": 0,
            "original_url": "string",
            "owner": {
                "active": true,
                "avatar_url": "string",
                "created": "2019-08-24T14:15:22Z",
                "description": "string",
                "email": "user@example.com",
                "followers_count": 0,
                "following_count": 0,
                "full_name": "string",
                "id": 0,
                "is_admin": true,
                "language": "string",
                "last_login": "2019-08-24T14:15:22Z",
                "location": "string",
                "login": "string",
                "prohibit_login": true,
                "restricted": true,
                "starred_repos_count": 0,
                "visibility": "string",
                "website": "string"
            },
            "parent": {},
            "permissions": {
                "admin": true,
                "pull": true,
                "push": true
            },
            "private": true,
            "release_counter": 0,
            "size": 0,
            "ssh_url": "string",
            "stars_count": 0,
            "template": true,
            "updated_at": "2019-08-24T14:15:22Z",
            "watchers_count": 0,
            "website": "string"
        },
        "subject": {
            "latest_comment_url": "string",
            "state": "string",
            "title": "string",
            "type": "string",
            "url": "string"
        },
        "unread": true,
        "updated_at": "2019-08-24T14:15:22Z",
        "url": "string"
    }
]

Request

Path Params
owner
string 
required
owner of the repo
repo
string 
required
name of the repo
Query Params
all
string 
optional
If true, show notifications marked as read. Default value is false
status-types
array[string]
optional
Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned
subject-type
array[string]
optional
filter notifications by subject type
since
string 
optional
Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
before
string 
optional
Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
page
integer 
optional
page number of results to return (1-based)
limit
integer 
optional
page size of results

Responses

🟢200OK
application/json
Body
array of:
id
integer <int64>
optional
pinned
boolean 
optional
repository
object (Repository) 
optional
Repository represents a repository
allow_merge_commits
boolean 
optional
allow_rebase
boolean 
optional
allow_rebase_explicit
boolean 
optional
allow_squash_merge
boolean 
optional
archived
boolean 
optional
avatar_url
string 
optional
clone_url
string 
optional
created_at
string <date-time>
optional
default_branch
string 
optional
default_merge_style
string 
optional
description
string 
optional
empty
boolean 
optional
external_tracker
object (ExternalTracker) 
optional
ExternalTracker represents settings for external tracker
external_wiki
object (ExternalWiki) 
optional
ExternalWiki represents setting for external wiki
fork
boolean 
optional
forks_count
integer <int64>
optional
full_name
string 
optional
has_issues
boolean 
optional
has_projects
boolean 
optional
has_pull_requests
boolean 
optional
has_wiki
boolean 
optional
html_url
string 
optional
id
integer <int64>
optional
ignore_whitespace_conflicts
boolean 
optional
internal
boolean 
optional
internal_tracker
object (InternalTracker) 
optional
InternalTracker represents settings for internal tracker
mirror
boolean 
optional
mirror_interval
string 
optional
name
string 
optional
open_issues_count
integer <int64>
optional
open_pr_counter
integer <int64>
optional
original_url
string 
optional
owner
object (User) 
optional
User represents a user
parent
object (Repository) 
optional
Repository represents a repository
permissions
object (Permission) 
optional
Permission represents a set of permissions
private
boolean 
optional
release_counter
integer <int64>
optional
size
integer <int64>
optional
ssh_url
string 
optional
stars_count
integer <int64>
optional
template
boolean 
optional
updated_at
string <date-time>
optional
watchers_count
integer <int64>
optional
website
string 
optional
subject
object (NotificationSubject) 
optional
NotificationSubject contains the notification subject (Issue/Pull/Commit)
latest_comment_url
string 
optional
state
string 
optional
StateType issue state type
title
string 
optional
type
string 
optional
NotifySubjectType represent type of notification subject
url
string 
optional
unread
boolean 
optional
updated_at
string <date-time>
optional
url
string 
optional
Modified at 2022-09-10 23:12:52
Previous
Mark notification thread as read by ID
Next
Mark notification threads as read, pinned or unread on a specific repo
Built with