{"uid":"cap_ULqLHp7f9A6VSJ_8irdow","slug":"x402-utils-random-id-generator-64f82379","name":"x402 Utils – Random ID Generator","description":"Generate random IDs from a cryptographic source: UUID v4, UUID v7 (time ordered), ULID or nanoid, up to 100 at a time.","url":"https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"type":{"enum":["uuid4","uuid7","ulid","nanoid"],"type":"string","description":"kind of ID (default uuid4)"},"count":{"type":"integer","description":"how many (1-100, default 1)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ids":{},"type":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ScbqUOlLqcJ5xkmU4SoA1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates up to 100 cryptographically random IDs in UUID v4, UUID v7 (time-ordered), ULID, or nanoid format per request.","exampleAgentPrompt":"Generate 10 ULIDs for me — I need them to use as sortable unique keys for new database records.","exampleUseCases":[{"title":"Bulk UUID generation for database seeding","prompt":"I need to seed my database with 100 new rows — can you generate 100 UUID v4s for me right now?"},{"title":"Time-ordered IDs for event logging","prompt":"Generate 25 UUID v7s for me; I'm logging events and need time-ordered unique IDs so they sort chronologically."},{"title":"Nanoid generation for short URLs","prompt":"Give me 5 nanoids — I'm building a URL shortener and want compact random IDs for the new links."}],"resultDescription":"A JSON object containing an array of generated IDs (the 'ids' field) and the 'type' field confirming which format was generated. Up to 100 IDs are returned per call.","failureModes":["Invalid 'type' parameter (not one of uuid4, uuid7, ulid, nanoid) — returns error","Count out of range (less than 1 or greater than 100) — returns validation error","Missing required query params use defaults (type=uuid4, count=1)","Lambda cold-start may add occasional latency spike"],"whenToPreferThis":"Use this endpoint when you need cryptographically secure random IDs in one of four well-known formats (UUID v4, UUID v7, ULID, nanoid) and want to generate up to 100 at once without running local crypto libraries. Particularly useful for agents operating in serverless or sandboxed environments where native UUID/ULID libraries are unavailable, or when you need time-ordered IDs (UUID v7, ULID) for sortable primary keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:06:31.772Z","isFirstParty":false,"canonicalSlug":"x402-utils-random-id-generator-64f82379"}