{"uid":"cap_6XFBO5gWrsGewCDeFNalf","slug":"writerslogic-id-kind-classifier-294462e6","name":"WritersLogic ID Kind Classifier","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-kind?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","maxLength":256,"minLength":1},"expect":{"enum":["uuid","ulid","ksuid","snowflake","evm-address","email","e164","stripe-object-id","github-token","aws-iam-unique-id"],"type":"string","description":"The kind the caller needs. Then the answer is pass if the value is a valid id of that kind, fail otherwise."}},"additionalProperties":false},"maxItems":100,"minItems":1}}},"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_ro1Uu0d_eVW22IuobptBv","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":"Classifies up to 100 identifier strings by format (UUID, ULID, KSUID, snowflake, EVM address, email, E.164, Stripe, GitHub token, AWS IAM), decodes embedded timestamps where available, and optionally validates against an expected kind.","exampleAgentPrompt":"Before we pass these IDs to the payment API, classify each one for me — I have a mix of what should be Stripe customer IDs, UUIDs, and email addresses, and I need to confirm each is the right kind: ['cus_9x8Yz1ABcdef', '550e8400-e29b-41d4-a716-446655440000', 'user@example.com'].","exampleUseCases":[{"title":"Pre-payment ID type guard","prompt":"I'm about to call the Stripe charge API with these identifiers but I'm not sure they're all valid Stripe object IDs — can you classify each one and tell me which ones pass as stripe-object-id: ['cus_4WT4C0UGtBH2', 'pi_3NkL1X2eZvKYlo2C1a2b3c4d', 'some-random-string-123']?"},{"title":"Snowflake timestamp extraction","prompt":"These IDs came from two different systems and I need to know which are Discord snowflakes vs Twitter snowflakes, and what timestamps are embedded in them: ['1151757808535019540', '1623927482157735936', '928314012376043522']."},{"title":"Mixed identifier batch audit","prompt":"I have a list of 50 user-submitted identifiers that should all be valid email addresses — can you run them through the classifier with expect set to email and tell me which ones fail: ['alice@example.com', 'not-an-email', 'bob@domain.co.uk', '12345', 'carol@@bad.com']?"}],"resultDescription":"For each submitted value, the endpoint returns the detected kind (uuid, ulid, ksuid, snowflake, evm-address, email, e164, stripe-object-id, github-token, aws-iam-unique-id, or unknown), sub-details like UUID version/variant or whether EIP-55 checksum passed, any decoded embedded timestamp, and — when `expect` is provided — a pass or fail verdict. Credential-shaped values (GitHub tokens, AWS keys) are never echoed back in the response.","failureModes":["Ambiguous IDs (e.g. 19-digit all-numeric strings matching both Discord and Twitter snowflake formats) return kind=unknown with all candidate readings listed","Values that exceed 256 characters or are empty are rejected with a validation error","Batch exceeding 100 items returns a 400-level error","A prefix match (e.g. cus_) is flagged as a candidate, not a confirmed Stripe ID — no registry lookup is performed","EVM addresses failing EIP-55 checksum return as invalid rather than unknown"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify the type or format of identifiers before passing them to downstream APIs — especially payment, ledger, or access-control systems where passing the wrong ID kind causes failures or security issues. Prefer it over regex-based client-side checks because it handles ambiguous multi-format cases, decodes embedded timestamps, and covers niche formats like KSUID, ULID, and AWS IAM prefixes in a single batch call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:31.819Z","isFirstParty":false,"canonicalSlug":"writerslogic-id-kind-classifier-294462e6"}