Cloady Docs
API ReferenceEndpointsGit

Read the working tree of a development app: branch, changes and recent commits

Reads the repository inside the running container by pod exec, so it is ground truth rather than the deploy record. Returns `{ok:false, reason}` when the app has no repo, no pod, or no git.

GET
/api/workspaces/{workspaceSlug}/apps/{appSlug}/git
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string

Query Parameters

limit?number
env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/apps/string/git"
{  "ok": true,  "branch": "string",  "branches": [    "string"  ],  "shallow": true,  "writable": true,  "ahead": 0,  "behind": 0,  "changes": [    {      "code": "string",      "path": "string",      "staged": true,      "add": 0,      "del": 0    }  ],  "commits": [    {      "sha": "string",      "subject": "string",      "author": "string",      "date": "string"    }  ]}