List a git repository's branches
Checks access to a git URL (with a stored credential for private repos, like git ls-remote) and lists its branches with the default one. Used to validate a generic git source before saving it.
Needs services.create on the project. Available to MCP clients and the assistant.
seylo_session<token>projectId*stringPanel-issued id.
^[a-z0-9]{16}$url*string^(https://|ssh://|git@)\S+$1 <= length <= 500credentialId?stringPanel-issued id.
^[a-z0-9]{16}$Success.
application/json- response
branches*array<string>defaultBranch*string|nullcurl -X GET 'https://example.com/api/v1/git.branches?projectId=string&url=string'{ "branches": [ "string" ], "defaultBranch": "string"}Write a file POST
Creates or replaces a file with the given content (up to 1 MiB). Existing files keep their mode. Needs `files.write` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Add a git credential POST
Stores an HTTPS access token (kind token) or an SSH private key (kind ssh_key) for a git host, sealed. To have the panel make the key pair instead, use git.generateSshKey. Needs `git.manage`, which owners and admins hold. Not available to MCP clients or the assistant.