# WritersLogic Dedup Window

> WritersLogic Dedup Window 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-19).

Stateless webhook/event deduplication engine that classifies an incoming delivery as process, dedupe, retry, reconcile, or abstain based on a caller-supplied history window

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/dedup-window?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-dedup-window-d01d8379
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XeJUgh6Y2nt1ISraj6yhT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-dedup-window-d01d8379 -d '<json body>'
```

Example prompt: I just received a webhook event with identity 'evt_abc123' at 2025-01-15T10:30:00Z — check it against my delivery history of the last 300 seconds using from-first mode and tell me whether I should process it, skip it as a duplicate, treat it as a retry, reconcile it, or abstain.

## When to prefer this

Use this endpoint when you need stateless, caller-managed event deduplication without maintaining server-side state — ideal for serverless functions, agent pipelines, and webhook processors that already track delivery history. Prefer this over database-based idempotency checks when you want an explicit classification (not just a boolean) distinguishing retries, reconciliation needs, and payload conflicts. Best when you can supply up to 500 history records per call and need deterministic, auditable dedup logic.

## Known failure modes

- Missing required fields (identity or receivedAt) on incoming or history items returns a validation error
- windowSeconds out of range (< 1 or > 2592000) returns a schema error
- payloadDigest too short (< 8 chars) triggers validation failure
- More than 500 history items exceeds maxItems limit
- Ambiguous or missing timestamps cause abstain decision rather than a hard error
- No matching identity in history returns process decision by design

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a decision field with one of: process (no duplicates found), dedupe (same payload already successfully processed), retry (all prior deliveries failed), reconcile (an earlier delivery is in-flight/unknown or a conflicting payload was seen), or abstain (insufficient evidence). Also returns a status of pass, fail, or unknown corresponding to the decision. Additionally lists duplicate groups found in history and any payload conflicts detected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "history": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "identity",
     "receivedAt"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "outcome": {
      "enum": [
       "processed",
       "failed",
       "in-flight",
       "unknown"
      ],
      "type": "string",
      "description": "What happened when this delivery was handled (history only)."
     },
     "payload": {
      "description": "Event body; hashed with RFC 8785 canonical JSON to detect conflicting duplicates."
     },
     "identity": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "description": "Delivery identity: the provider's event id, or a key built from the fields that define the event."
     },
     "receivedAt": {
      "type": "string",
      "maxLength": 40,
      "description": "RFC 3339 instant."
     },
     "payloadDigest": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "description": "Alternative to payload: a digest the caller computed."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500
  },
  "incoming": {
   "type": "object",
   "required": [
    "identity",
    "receivedAt"
   ],
   "properties": {
    "id": {
     "type": "string",
     "maxLength": 200,
     "minLength": 1
    },
    "outcome": {
     "enum": [
      "processed",
      "failed",
      "in-flight",
      "unknown"
     ],
     "type": "string",
     "description": "What happened when this delivery was handled (history only)."
    },
    "payload": {
     "description": "Event body; hashed with RFC 8785 canonical JSON to detect conflicting duplicates."
    },
    "identity": {
     "type": "string",
     "maxLength": 200,
     "minLength": 1,
     "description": "Delivery identity: the provider's event id, or a key built from the fields that define the event."
    },
    "receivedAt": {
     "type": "string",
     "maxLength": 40,
     "description": "RFC 3339 instant."
    },
    "payloadDigest": {
     "type": "string",
     "maxLength": 128,
     "minLength": 8,
     "description": "Alternative to payload: a digest the caller computed."
    }
   },
   "additionalProperties": false
  },
  "windowMode": {
   "enum": [
    "from-first",
    "sliding"
   ],
   "type": "string",
   "description": "from-first (default): a group's window starts at its first delivery. sliding
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-dedup-window-d01d8379/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
