Get a worktree's sync state
GET
/api/orgs/{org}/projects/{project}/sync
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects/example/sync?branch=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api-dev.wrktr.com/api/orgs/example/projects/example/sync?branch=example' \ --header 'Authorization: Bearer <token>'What the daemon last reported for the branch’s worktree: in sync, stopped on a conflict, or failing to sync.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
Query Parameters
Section titled “Query Parameters”branch
required
string
Responses
Section titled “Responses”SyncStatus
Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}ProjectNotFound | BranchNotFound