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 booleanresidential_proxy: optional residential proxy location object
callback_url, you must also set callback_secret.
Use residential_proxy for location-sensitive runs that need traffic to originate from a specific residential proxy country, US state, city, ZIP code, or ASN. See Residential proxy locations for the supported fields and combination rules.
Callback delivery order:
- If the job has
callback_urlandcallback_secret, Libretto Cloud delivers only to that per-job callback. - Otherwise, Libretto Cloud delivers to every active stored webhook endpoint for the tenant.
- If
skip_callbacksis true, Libretto Cloud does not deliver callbacks or stored webhooks.
callback_url for one-off or environment-specific result delivery. Use stored webhook endpoints for long-lived production destinations. See Webhooks for payload fields and signature headers.
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_stack
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_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.
Webhooks
Configure tenant-level job result webhooks.
Libretto Cloud API overview
See the shared request format.