Check if the current user is watching a repo
GET
/repos/{owner}/{repo}/subscription
const url = 'https://gitea.com/api/v1/repos/example/example/subscription';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/repos/example/example/subscription \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
Responses
Section titled “Responses”WatchInfo
Media typeapplication/json
WatchInfo represents an API watch status of one repository
object
created_at
The timestamp when the watch status was created
string format: date-time
ignored
Whether notifications for the repository are ignored
boolean
reason
The reason for the current watch status
repository_url
The URL of the repository being watched
string
subscribed
Whether the repository is being watched for notifications
boolean
url
The URL for managing the watch status
string
Examplegenerated
{ "created_at": "2026-04-15T12:00:00Z", "ignored": true, "reason": "example", "repository_url": "example", "subscribed": true, "url": "example"}User is not watching this repo or repo do not exist
Media typeapplication/json