# WritersLogic Verifiable AI Agent Hub — ID Block Generator

> WritersLogic Verifiable AI Agent Hub — ID Block Generator 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).

Allocates strictly increasing, non-reusable integer ID blocks from named sequences so parallel agents can generate collision-free invoice, ticket, or order numbers.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/id-block?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-verifiable-ai-agent-hub-id-block-generator-eb26c3e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AMvZADDlPa1wjLGD7Kyxi

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-verifiable-ai-agent-hub-id-block-generator-eb26c3e0 -d '<json body>'
```

Example prompt: Reserve the next block of 25 IDs from the 'invoice:2026' sequence — make sure no other agent gets the same numbers, and use requestId 'run-20260601-001' so we can safely retry if needed.

## When to prefer this

Use this endpoint when multiple agents or workers must generate non-colliding sequential IDs (invoices, tickets, orders) in parallel without coordination overhead. It is ideal when strict monotonic ordering is needed and occasional gaps are acceptable. Prefer it over UUID generation when human-readable sequential numbers matter, and over database auto-increment when agents are distributed across systems without direct DB access. Not suitable when legally gapless sequences are required by regulation — in that case your system of record must handle final assignment.

## Known failure modes

- Payment failure after block is written — same requestId returns same block on retry, preventing double-allocation
- Conflicting requestId reuse — same requestId submitted with different inputs is rejected with an error
- Sequence count out of range — count below 1 or above 1000 returns a validation error
- Invalid sequence name format — names not matching the allowed character pattern are rejected
- Requested start value ignored if sequence already exists — start parameter only applies to new sequence creation
- Network timeout during write — retrying with the same requestId safely returns the already-reserved block

## How this service works

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

## Output

Returns the reserved integer block (start and end values), the sequence name, the count of IDs allocated, and the requestId. For 'peek' operations, returns the current sequence position without advancing it. On retry with the same requestId and inputs, returns the previously stored block rather than issuing a new one.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "next",
    "peek"
   ],
   "type": "string"
  },
  "count": {
   "type": "integer",
   "maximum": 1000,
   "minimum": 1,
   "description": "Ids to reserve; default 1."
  },
  "start": {
   "type": "integer",
   "maximum": 9007199254740990,
   "minimum": 0,
   "description": "First id of a new sequence; ignored once it exists. Default 1."
  },
  "sequence": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.:/@+-]{1,200}$",
   "description": "Sequence name, e.g. invoice:2026."
  },
  "tenantId": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.-]{1,64}$",
   "description": "Required for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant."
  },
  "requestId": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
   "description": "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)."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-verifiable-ai-agent-hub-id-block-generator-eb26c3e0/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)
