Create a deployment
POST
https://api.shadw.cloud/v1/git/deployClone, build and deploy a Git repository. Returns a build id you can stream logs from. The branch (vs the project's production branch) decides production vs preview.
Authentication
AuthorizationbearerTokenA platform API key (hive_…, created under Settings → API Keys) or a short-lived JWT minted with POST /v1/token. An API key scopes the request to the team it was created under.
Body parameters
repo_urlstringRequiredGit repository URL to clone and build.
branchstringOptionalBranch to deploy (defaults to the repo's default branch).
projectstringOptionalProject name (auto-generated when omitted).
root_dirstringOptionalSubdirectory to build, for monorepos.
target"production" | "preview"OptionalForce the environment; omit to classify by branch.
use_cachebooleanOptionalReuse the dependency build cache (default true).

