Base URL
| Environment | URL |
|---|---|
| Local | http://localhost:8090/v1 |
| Production | https://api.lavendly.ai/v1 |
Conventions
- JSON only. Both directions, UTF-8.
- Errors use a single standardized envelope:
{ error: { code, message, ...extra } }. See Errors. - Idempotency is opt-in via the
Idempotency-Keyheader on POSTs that cost money or create entities. Same key within 5 min → same response. - Versioning is in the path (
/v1). Breaking changes get a new prefix; additive changes (new endpoint, new optional field) ship in/v1.
The 23 operations
The server exposes a self-describing catalog atGET /v1/_schema, fetch it once,
discover every operation, body shape, and idempotency flag.
Workflow CRUD (5)
Workflow CRUD (5)
list_workflows, get_workflow, create_workflow, update_workflow, delete_workflowAudio model (5)
Audio model (5)
get_workflow_audio, set_clip_native_audio, attach_track, update_track, detach_trackRenders (4)
Renders (4)
create_render, get_render, list_renders, list_all_rendersLedger (4)
Ledger (4)
get_ledger, reserve_credits, commit_reserve, refund_reserveTelemetry & introspection (5)
Telemetry & introspection (5)
get_monthly_usage, get_top_spenders, get_status, get_schema, update_render (canvas-only)