Skip to main content
GET
/
git
/
status
curl http://localhost:8081/git/status
{
  "configured": true,
  "repo_url": "https://github.com/user/watch-scripts.git",
  "branch": "main",
  "local_path": "watch_scripts",
  "current_commit": "abc123def456",
  "remote_commit": "abc123def456",
  "up_to_date": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt

Use this file to discover all available pages before exploring further.

Blnk Watch is currently in beta. Send us a message
Use this endpoint to inspect the Git repository Watch uses for rule scripts. It is only meaningful when WATCH_SCRIPT_GIT_REPO is configured in your Watch configuration.
When Git sync is not configured, the response returns "configured": false with an error message.

Request

This endpoint has no path, query, or body parameters.
curl http://localhost:8081/git/status
{
  "configured": true,
  "repo_url": "https://github.com/user/watch-scripts.git",
  "branch": "main",
  "local_path": "watch_scripts",
  "current_commit": "abc123def456",
  "remote_commit": "abc123def456",
  "up_to_date": true
}

Response fields

configured
boolean
Whether a Git repository is configured for Watch script sync.
repo_url
string
Git repository URL from WATCH_SCRIPT_GIT_REPO.
branch
string
Branch name Watch tracks. Defaults to main when not set.
local_path
string
Local directory where Watch stores cloned scripts.
current_commit
string
Current local commit hash.
remote_commit
string
Latest commit hash on the remote branch, when available.
up_to_date
boolean
Whether the local and remote commits match.
error
string
Error message when Git is not configured or status lookup fails.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.