Skip to main content
GET
/
v1
/
templates
/
{slug}
curl https://api.runtools.ai/v1/templates/my-fullstack \
  -H "X-API-Key: rt_live_xxx"
{
  "data": {
    "id": "tpl_abc123",
    "slug": "my-fullstack",
    "name": "Full Stack Environment",
    "status": "building",
    "progress": 45,
    "buildLog": "https://api.runtools.ai/v1/templates/my-fullstack/logs"
  }
}
Template build pipeline is not yet connected. The CRUD routes exist but custom template building is not available. See Templates for current status.

Path Parameters

slug
string
required
Template slug

Response

id
string
Template ID
slug
string
Template slug
status
string
Build status: pending, building, ready, failed
size
string
Image size (when ready)
buildLog
string
Build log URL
error
string
Error message (if failed)
curl https://api.runtools.ai/v1/templates/my-fullstack \
  -H "X-API-Key: rt_live_xxx"
{
  "data": {
    "id": "tpl_abc123",
    "slug": "my-fullstack",
    "name": "Full Stack Environment",
    "status": "building",
    "progress": 45,
    "buildLog": "https://api.runtools.ai/v1/templates/my-fullstack/logs"
  }
}

Build Logs

Stream build logs:
curl https://api.runtools.ai/v1/templates/my-fullstack/logs \
  -H "X-API-Key: rt_live_xxx" \
  -H "Accept: text/event-stream"
SDK
for await (const line of template.buildLogs()) {
  console.log(line);
}