Skip to main content
POST
Clones a git repository into the session’s sandbox. Supports public repos and private repos when a GitHub App installation or user token is configured. Required scope: sessions:write

Path Parameters

string
required
The session ID (e.g. ses_abc123).

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Body

string
required
Repository URL (e.g. https://github.com/owner/repo).
string
Branch to clone. Defaults to the repository’s default branch.

Response

string
Session ID.
string
Cloned repository URL.
string
Branch that was checked out.
string
Path where the repo was cloned in the sandbox.