Durable Workbox
Why it matters: Lets producers enqueue durable agent work and workers safely claim, complete, or retry it without losing lifecycle state.
Durable, account-scoped work items with leased execution, bounded retries, and artifact-backed outcomes.
API endpoints
| Method | Path | Description |
|---|---|---|
POST | /v1/work | Create durable work |
GET | /v1/work | List account work |
POST | /v1/work/claim | Claim pending work with a lease |
POST | /v1/work/:id/complete | Complete leased work |
POST | /v1/work/:id/fail | Fail or retry leased work |
Examples
Create durable work
curl -X POST https://cloudharness.ai/v1/work \
-H "Authorization: Bearer <CLOUDHARNESS_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"type":"document.process","payload":{"artifactRef":"art_input"},"idempotencyKey":"document-123"}'