WritersLogic Distributed Lease / Fencing Token API is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).
Coordinates multi-agent task ownership via named resource leases with monotonically increasing fencing tokens to prevent stale writes from expired holders.
Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
Returns the current lease state including the fencing token (a strictly increasing integer), the current holder, the resource name, and the lease expiry time. For acquire operations, a new larger token is issued; for renew, the same token is returned with extended expiry; for release, confirmation of release; for get, the current holder and token without side effects.
POSThttps://agents.writerslogic.com/api/v1/lease?utm_source=zero.xyzUse this endpoint when you need lightweight, time-bounded mutual exclusion across a fleet of AI agents — particularly when you need fencing tokens to prevent stale writes to downstream stores. Prefer this over application-level locking when agents are distributed and may crash or stall, since renew-failure naturally detects lost leases. It is not a full distributed-systems guarantee (e.g. no Paxos/Raft consensus) but is sufficient for agent-fleet task coordination where the downstream store can enforce fencing token ordering.
| Field | Type | Description |
|---|---|---|
| op | string | |
| token | integer | Fencing token from acquire; required for renew and release. |
| holder | string | Your worker id. Required for acquire, renew and release. |
| resource | string | Task or resource name, e.g. invoice:INV-1009 or deploy:prod. |
| tenantId | string | Required for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant. |
| requestId | string | Caller-chosen id for this mutation. A retry with the same id and same input returns the stored response (24 h) instead of applying twice; the same id with different input is rejected. Send one on every mutation you may retry: without it a retry is applied again (fleet-memory record appends a duplicate; a repeated spend-ledger commit or release answers NO_HOLD because the first call already took effect). |
| ttlSeconds | integer | Lease length; default 30. |
{
"type": "json"
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"