Skip to main content

Build and wait for completion

The build method builds the template and waits for the build to complete. It returns build information including the template ID and build ID.

Build in background

The buildInBackground method starts the build process and returns immediately without waiting for completion. This is useful when you want to trigger a build and check its status later.

Check build status

Use getBuildStatus to check the status of a build started with buildInBackground.

Example: Background build with status polling