Use the deployments API when you already have a workflow bundle, and use the workflows API to inspect deployed or AI-generated workflows.
x-api-key./v1/deployments/createdescription: optional deployment descriptionsource: base64-encoded gzip tarballentry_point: optional entry file, default index.tsauto_repair: optional boolean, default false. When true, failed jobs for this deployment route to the autofix agent instead of the readonly debug agent.deployment_idstatus: always buildingcreated_at/v1/deployments/list1{ "json": {} }
iddescriptionstatussource_pathbundle_pathbuild_errorentry_pointbuilt_atcreated_atworkflows/v1/deployments/syncid: deployment ididdescriptionstatussource_pathbundle_pathbuild_errorentry_pointbuilt_atcreated_atworkflows/v1/workflows/listdeployed_workflowsin_progress_buildsdeployed_workflows entry includes:namedeployment_iddeployment_statuscreated_atupdated_atin_progress_builds entry includes:build_idstatusworkflow_namesummaryerrorcreated_atupdated_at/v1/workflows/getworkflow: workflow nameworkflowdeployment_iddeployment_statusdeployment_created_atdeployment_built_atcreated_atupdated_atinput_schema: JSON Schema (Draft 2020-12) serialized from the workflow's Zod input schema at build time. null for legacy deployments built before Zod-schema workflows were supported.output_schema: JSON Schema serialized from the workflow's Zod output schema. null for legacy deployments.1234567891011121314151617181920212223242526272829{ "json": { "workflow": "getExampleTitleAndUrl", "deployment_id": "062874fc-4714-4bd5-932f-0ae61ed8d0f6", "deployment_status": "ready", "deployment_created_at": "2026-05-17T01:15:26.670Z", "deployment_built_at": "2026-05-17T01:17:08.730Z", "created_at": "2026-05-17T01:15:28.167Z", "updated_at": "2026-05-17T01:17:31.314Z", "input_schema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "url": { "type": "string", "format": "uri" } }, "additionalProperties": false }, "output_schema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "required": ["title", "currentUrl"], "properties": { "title": { "type": "string" }, "currentUrl": { "type": "string", "format": "uri" } }, "additionalProperties": false } } }
/v1/workflows/deleteworkflow: workflow namesuccessmessage/v1/workflows/builddescriptions: one or more natural-language descriptionsinitial_url: URL where the build should startparams: optional workflow params schema examplenetwork_log: optional captured network logaction_log: optional captured action logentry_point: optional entry file, default index.tsbuild_idstatus: pending or agent_running/v1/workflows/buildStatusbuild_idbuild_idstatusdeployment_idworkflow_namesummaryerrordetailsattempted_stepscreated_atupdated_at12345678curl -X POST "https://api.libretto.sh/v1/deployments/sync" \ -H "x-api-key: $LIBRETTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "json": { "id": "<deployment-id>" } }'