Documentation Index
Fetch the complete documentation index at: https://libretto.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Use the deployments API when you already have a workflow bundle, and use the workflows API to inspect deployed or AI-generated workflows.All routes on this page require
x-api-key.
Deployments
POST /v1/deployments/create
Upload a base64-encoded gzip tarball and create a hosted deployment.
Request fields:
description: optional deployment descriptionsource: base64-encoded gzip tarballentry_point: optional entry file, defaultindex.tsauto_repair: optional boolean, defaultfalse
deployment_idstatus: alwaysbuildingcreated_at
POST /v1/deployments/list
List deployments for the current tenant.
Send an empty request body:
iddescriptionstatussource_pathbundle_pathbuild_errorentry_pointbuilt_atcreated_atworkflows
POST /v1/deployments/sync
Poll a deployment until the build finishes and workflow discovery lands.
Request fields:
id: deployment id
iddescriptionstatussource_pathbundle_pathbuild_errorentry_pointbuilt_atcreated_atworkflows
Workflows
POST /v1/workflows/list
List deployed workflows and in-progress workflow builds.
Response fields:
deployed_workflowsin_progress_builds
deployed_workflows entry includes:
namedeployment_iddeployment_statuscreated_atupdated_at
in_progress_builds entry includes:
build_idstatusworkflow_namesummaryerrorcreated_atupdated_at
POST /v1/workflows/get
Return the deployment backing a single workflow name.
Request fields:
workflow: workflow name
workflowdeployment_iddeployment_statusdeployment_created_atdeployment_built_atcreated_atupdated_at
POST /v1/workflows/delete
Delete a workflow by name.
Request fields:
workflow: workflow name
successmessage
AI workflow build routes
POST /v1/workflows/build
Create an AI-driven workflow build from a natural-language description.
Request fields:
descriptions: 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, defaultindex.ts
build_idstatus:pendingoragent_running
POST /v1/workflows/buildStatus
Poll an AI workflow build.
Request fields:
build_id
build_idstatusdeployment_idworkflow_namesummaryerrordetailsattempted_stepscreated_atupdated_at
Example deploy poll
Jobs and Logs
Invoke workflows and inspect job state.
Sessions
Create browser sessions directly.
Libretto Cloud API overview
See the shared request format.