Read the git working tree
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.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Query Parameters
Value in
- "production"
- "preview"
- "development"
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" } ]}Run a query against a database component POST
Runs over a real protocol driver, not a shell, and executes whatever is sent — including writes and DDL. Redis and MongoDB take their own command syntax rather than SQL.
Discard Git changes POST
Discard every change at the given paths: edited and deleted files go back to the last commit, and new files are deleted, staged or not. Paths are literal, never patterns. Fails before changing anything if a path has no change, and afterwards, naming what is left, if any of those paths still shows one. The discarded work can't be recovered. Works only on a development app: any other app answers 403 `read_only`. Runs git in the app's running container and returns its output.