Skip to main content
Unary · Prebuilds Creates a prebuild for a project. Use this method to:
  • Create on-demand prebuilds for faster environment startup
  • Trigger prebuilds after repository changes
  • Generate prebuilds for specific environment classes
The prebuild process creates an environment, runs the devcontainer prebuild lifecycle, and creates a snapshot for future environment provisioning.

Examples

  • Create basic prebuild: Creates a prebuild for a project using default settings.
  • Create prebuild with custom environment class: Creates a prebuild with a specific environment class and timeout.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreatePrebuildRequest

Response

gitpod.v1.CreatePrebuildResponse
Prebuild represents a prebuild for a project that creates a snapshot for faster environment startup times.gitpod.v1.Prebuild
PrebuildMetadata contains metadata about the prebuildgitpod.v1.PrebuildMetadata
PrebuildSpec contains the configuration used to create a prebuildgitpod.v1.PrebuildSpec
PrebuildStatus contains the current status and progress of a prebuildgitpod.v1.PrebuildStatus
PrebuildTrigger indicates how the prebuild was triggered
PrebuildPhase represents the lifecycle phase of a prebuild