The hosted platform for Libretto. Deploy workflows, run them through a managed API, schedule workflow runs, and investigate failures.
https://api.libretto.sh.1npx libretto cloud auth signup
1npx libretto cloud auth api-key issue --label laptop-dev
LIBRETTO_API_KEY in your .env file:12# .env LIBRETTO_API_KEY=<issued-key>
job.completed and job.failed events back to you:1234567891011curl -X POST "https://api.libretto.sh/v1/webhooks/create" \ -H "x-api-key: $LIBRETTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "json": { "url": "https://example.com/libretto/webhooks", "signing_secret": "replace-with-your-secret", "description": "production job webhooks", "active": true } }'
deploy is the package directory that gets bundled and uploaded, and it must contain package.json:123456my-automations/ ├── package.json ├── index.ts └── src/ └── workflows/ └── check-eligibility.ts
12cd my-automations npx libretto cloud deploy .
123456789101112curl -X POST "https://api.libretto.sh/v1/jobs/create" \ -H "x-api-key: $LIBRETTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "json": { "workflow": "check-eligibility", "params": { "memberId": "12345" }, "timeout_seconds": 300 } }'
12345678curl -X POST "https://api.libretto.sh/v1/jobs/get" \ -H "x-api-key: $LIBRETTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "json": { "id": "<job-id>" } }'