API

Build apps from your own code

The web app uses the same API. Errors follow RFC 9457. Machine-readable spec: /v1/openapi.json.

POST/v1/buildsQueue a build from a prompt (Idempotency-Key supported)
GET/v1/builds/{id}Status, metrics, artefact links, repository URL and documentation
GET/v1/builds/{id}/eventsLive trace as Server-Sent Events
POST/v1/builds/{id}/deliverPush to your GitHub (browser session)
POST/v1/builds/{id}/improveFix the remaining security alerts and deliver a new verified version
GET/v1/componentsSearch the catalog
GET/v1/components/{id}Component manifest
curl -X POST https://software.turbineh.com/v1/builds \
  -H "Authorization: Bearer $TURBINEH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"An internal tool to track inventory with CSV import and export"}'

# → 202 {"build_id":"…","events_url":"/v1/builds/…/events"}

curl -N https://software.turbineh.com/v1/builds/$BUILD_ID/events \
  -H "Authorization: Bearer $TURBINEH_API_KEY"