---
title: "Whether a template builder is running (heartbeat within 60 s)"
method: GET
path: "/v1/organizations/{organization_id}/template-builder-availability"
tags: ["Template builds"]
---

# Whether a template builder is running (heartbeat within 60 s)

`GET /v1/organizations/{organization_id}/template-builder-availability`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/organizations/{organization_id}/template-builder-availability`
- Auth: HTTP bearer

## Path parameters

- `organization_id` string, uuid, required

## Response `200`

From builder heartbeats (app.template_builders, 60 s window). `unavailable`: queued builds wait until a builder runs.

- object: From builder heartbeats (app.template_builders, 60 s window). `unavailable`: queued builds wait until a builder runs.
  - `state` 'available' | 'unavailable', required
  - `reason` 'no_builder_registered' | 'no_recent_heartbeat', nullable, required
  - `active_builders` integer, required
  - `last_heartbeat_at` string, date-time, nullable, required: RFC 3339 UTC timestamp with Z.

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
