Skip to main content
GET
/
builds
/
latest
curl "https://www.orgo.ai/api/builds/latest?orgId=USER_ID&projectId=WORKSPACE_ID&name=data-science" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "build": {
    "id": "a3bb189e-8bf9-3888-9912-ace4e6543002",
    "tag": "abc123-def456-1234567890-xyz789",
    "imageRef": "registry.fly.io/orgoforge:abc123-def456-1234567890-xyz789",
    "status": "completed",
    "name": "data-science",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}
Returns the latest successful build for a template. Used to resolve template names to image references when creating computers.

Query Parameters

orgId
string
required
Organization or user ID
projectId
string
required
Workspace ID
name
string
required
Template name

Response

success
boolean
Whether the build was found
build
object
curl "https://www.orgo.ai/api/builds/latest?orgId=USER_ID&projectId=WORKSPACE_ID&name=data-science" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "build": {
    "id": "a3bb189e-8bf9-3888-9912-ace4e6543002",
    "tag": "abc123-def456-1234567890-xyz789",
    "imageRef": "registry.fly.io/orgoforge:abc123-def456-1234567890-xyz789",
    "status": "completed",
    "name": "data-science",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}