Renew work-item claim
Extends a lease the caller still holds, for agents whose unit of work outlives the original lease window. Holder-only: a non-holder extending someone else’s lease would be a silent steal.
/api/v1/work-items/:id/claimAuthorization
work-items:assignapi key scoperequiredPath parameters
idstringrequiredExample: work_01k2...
Request body
claim_ownerstringrequiredlease_secondsnumberoptional{
"claim_owner": "agent-7f3c",
"lease_seconds": 900
}Request
curl -X POST "https://www.digitalstack360.com/api/v1/work-items/work_01k2.../claim" \
-H "Authorization: Bearer $DS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"claim_owner":"agent-7f3c","lease_seconds":900}'Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
{
"data": {
"claim": {
"id": "work_01k2...",
"key": "4210",
"title": "Implement board projection API",
"status": "ready",
"priority": "high",
"projectId": "proj_01k2...",
"claimOwner": "agent-7f3c",
"claimedAt": "2026-07-28T09:12:04Z",
"claimExpiresAt": "2026-07-28T09:42:04Z"
}
}
}Errors
missing_authNo credentials provided
invalid_api_keyAPI key is invalid or revoked
scope_insufficientKey lacks work-items:assign scope
invalid_requestclaim_owner is missing or exceeds 200 characters, or lease_seconds is not a positive number of 3600 or fewer
not_foundWork item does not exist or is outside the key account
claim_not_heldYou are not the holder, or the lease already expired — an expired lease may already belong to another agent, and reviving it would hand one item to two agents