Skip to main content
GET
Get Git information

Authorizations

Authorization
string
header
required

An API token for one organization. You create and revoke tokens in the dashboard. A token scoped to one App can reach only that App, so give that kind of token to an agent. An organization-wide token can create a short-lived one with POST /api/tokens.

Scopes

apps:read
OAuth

See the organization's Apps, with their files, deployments, and logs.

apps:read
DPoP

Path Parameters

id
string
required

A unique ID that starts with app_.

Pattern: ^app_[0-9A-Za-z]{24}$
Example:

"app_Zj7XhMgplmTJcp5Dk4vcYuk0"

Query Parameters

mode
enum<string>
default:status

What to return:

  • status: the Git status.
  • diff: the uncommitted changes, as a patch.
  • stat: a summary of the uncommitted changes.
  • history: the recent commits.
Available options:
status,
diff,
stat,
history

Response

The Git output.

output
string
required

Git's output for the requested mode.