Skip to main content
POST
/
git
/
sync
curl -X POST http://localhost:8081/git/sync
{
  "success": true,
  "message": "Repository synced and scripts reloaded",
  "before_commit": "abc123def456",
  "after_commit": "def456ghi789"
}

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 manually sync Watch scripts from the configured Git repository. When the remote commit changes, Watch reloads scripts from the updated repository in the background. This endpoint is only available when WATCH_SCRIPT_GIT_REPO is configured in your Watch configuration.

Request

This endpoint has no path, query, or body parameters.
curl -X POST http://localhost:8081/git/sync
{
  "success": true,
  "message": "Repository synced and scripts reloaded",
  "before_commit": "abc123def456",
  "after_commit": "def456ghi789"
}

Response fields

success
boolean
Whether the sync operation completed successfully.
message
string
Status message. When the commit changes, this includes confirmation that scripts were reloaded.
before_commit
string
Local commit hash before the sync started.
after_commit
string
Local commit hash after the sync completed.
error
string
Error message when Git is not configured or the sync 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.