← All agent quickstarts
DeadlineMyTask · Subscription · REST + MCP

Give an offline agent task a durable external clock.

Create deadline state from a task digest, check it from any later run, and route requires_escalation: true to an operator workflow.

Step 1 · Create
curl https://api.scrubmytext.com/v1/deadlines/manage -H "Authorization: Bearer smt_live_YOUR_KEY" -H "Content-Type: application/json" -d '{"operation":"create","task_fingerprint":"sha256:YOUR_64_HEX_DIGEST","due_in_seconds":3600,"escalation_grace_seconds":900}'
Step 2 · Check from a scheduler or resumed agent
curl https://api.scrubmytext.com/v1/deadlines/manage -H "Authorization: Bearer smt_live_YOUR_KEY" -H "Content-Type: application/json" -d '{"operation":"check","control_id":"ddl_RETURNED_ID"}'

Continue ordinary work while status is pending. When requires_escalation is true, stop normal execution and invoke the designated operator path.

Step 3 · Close explicitly

Use {"operation":"complete","control_id":"ddl_..."} after verified completion or cancel when the task is abandoned.

Limits