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 JWT of at most 1 hour from POST /v1/token, which is server-only once HIVE_JWT_SECRET is set. 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).

