Get a serverless endpoint build
Retrieve a single GitHub build for a Runpod Serverless endpoint by its build ID, returning that build regardless of how old it is.
Authorizations
Runpod API key authentication. Generate an API key in the Runpod console and send it in the Authorization header as Bearer <api_key>. Keys are scoped to the permissions granted when created; requests may return 403 when a valid key lacks access to the requested resource or action.
Path Parameters
Serverless endpoint identifier
GitHub build identifier (from GET /v2/serverless/{id}/builds or a release's buildId)
Response
OK
"build_abc123"
GitHub build lifecycle state. COMPLETED, FAILED, CANCELLED, and
TEST_FAILED are terminal; PENDING, BUILDING, UPLOADING, and
TESTING are live.
PENDING, BUILDING, UPLOADING, TESTING, COMPLETED, FAILED, CANCELLED, TEST_FAILED Short hash of the commit that triggered the build.
"abc1234"
"bump model"
Git branch the commit was pushed to.
"main"
When the triggering commit was authored.
"2026-06-01T12:00:00Z"
Fully qualified image the build produced (or will produce).
"registry.runpod.net/repo:abc1234"
When the build started. Null while the build is still pending.
"2026-06-01T12:00:05Z"
When the build reached a terminal state. Null while the build is live.
"2026-06-01T12:04:31Z"
Failure detail for FAILED / TEST_FAILED builds; null otherwise.