{"uid":"cap_AMvZADDlPa1wjLGD7Kyxi","slug":"writerslogic-verifiable-ai-agent-hub-id-block-generator-eb26c3e0","name":"WritersLogic Verifiable AI Agent Hub — ID Block Generator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/id-block?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yDIy85VBQCG2RTjWYAGPg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Allocates strictly increasing, non-reusable integer ID blocks from named sequences so parallel agents can generate collision-free invoice, ticket, or order numbers.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Parallel invoice numbering for agent fleet","prompt":"My billing agents are running in parallel and I need 10 sequential invoice numbers from the 'invoice:2026' sequence that none of the other agents will get — reserve them now with requestId 'billing-batch-001'."},{"title":"Peek at current ticket sequence","prompt":"Don't consume any numbers, but peek at where the 'support-tickets:2026' sequence currently stands so I know what the next ticket number would be."},{"title":"Bootstrap a new order sequence","prompt":"Start a brand-new sequence called 'orders:Q3-2026' beginning at 10000, then reserve the first 5 order numbers from it with requestId 'q3-init-001'."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:30:18.718Z","isFirstParty":false,"canonicalSlug":"writerslogic-verifiable-ai-agent-hub-id-block-generator-eb26c3e0"}