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.
Authorization
cloady 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" } ]}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.
Act on a development app's repository POST
One action per call: discard, stage, unstage, commit, checkout, merge, rebase, revert, cherry, pull or push. Commits live in the container and die with it unless pushed.