Workflows and apps
Bundle download URL
A presigned URL for the live code bundle. Download the tar.gz and extract it.
GET
https://cloud.generalinput.com/v1/workflows/:id/bundle-urlAuthenticationRequires
workflows:manage on a personal API key. A CLI session always passes.Pull. The live version's files as one gzipped tar, served from storage through a short-lived presigned GET.
Response
{
"workflowType": "code",
"downloadUrl": "https://storage.example/…?X-Amz-Signature=…"
}Example
URL=$(curl -s "https://cloud.generalinput.com/v1/workflows/wf_01HX/bundle-url" \
-H "Authorization: Bearer $GI_API_KEY" | jq -r .downloadUrl)
curl -s "$URL" | tar -xz -C ./digestThe archive is flat: workflow.json, main.ts, package.json at the root, with any subdirectories (scripts/, src/, handlers/) as the type requires.