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 jobs API to run workflows and inspect results, and use the logs API to fetch executor logs for recent jobs.All routes on this page require
x-api-key.
Jobs
POST /v1/jobs/create
Start a workflow job.
Request fields:
workflow: deployed workflow nameparams: workflow input objectnonce: optional idempotency-style noncetimeout_seconds: optional timeout, default1800, max3600callback_url: optional callback URLcallback_secret: optional callback secretskip_callbacks: optional boolean
callback_url, you must also set callback_secret.
Response fields:
successjob_idstatus: alwaysrunningmessage
POST /v1/jobs/list
List jobs for the current tenant.
Request fields:
status: optional status filterlimit: optional page size, default20, max100cursor: optional pagination cursor fromnext_cursor
jobsnext_cursor
job_iddeployment_idworkflow_idworkflowstatuscreated_atcompleted_at
POST /v1/jobs/get
Return a single job and its result data.
Request fields:
id: job id
job_iddeployment_iddeployment_versionworkflow_idworkflowparamsstatuscreated_atstarted_atcompleted_atresulterrormapped_stackrecording_url
POST /v1/jobs/debugReport
Return the hosted debug or autofix report for a failed job.
Request fields:
id: job id
job_iddebug_agent_statusdebug_agent_modeerrortldrhandoff_promptscreenshot_urldom_snapshot_urlrecording_urlautofix_summaryautofix_deployment_idemail_sent_atjob_errorjob_mapped_stackjob_paramsjob_workflow
POST /v1/jobs/cancel
Cancel a queued or running job.
Request fields:
id: job id
successmessage
Logs
POST /v1/logs/list
Fetch recent executor logs for one job or for recent jobs in the tenant.
Request fields:
jobId: optional job idworkflow: optional workflow-name filterlevel: optionalinfo,warn, orerrorpageToken: optional next-page tokenlimit: optional page size, default100, max1000
logsnextPageToken
jobIdworkflowlevelmessagetimestamp
Example job run
Credentials
Store credentials used by Libretto Cloud workflows.
Deployments and Workflows
Deploy workflows and inspect build state.
Libretto Cloud API overview
See the shared request format.