{"uid":"cap_aOlaqfQs123oz5WZWaQiW","slug":"format-validator-api-8aa4c00a","name":"Format Validator API","description":"Validate a value against a known format (email, url, uuid, ipv4, ipv6, credit_card, iban, phone_e164, date_iso8601, postal_code_us, postal_code_uk, postal_code_ca).","url":"https://format-validator.pdfextractapi.workers.dev/validate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["value","format"],"properties":{"value":{"type":"string","description":"The value to validate."},"format":{"enum":["email","url","uuid","ipv4","ipv6","credit_card","iban","phone_e164","date_iso8601","postal_code_us","postal_code_uk","postal_code_ca"],"type":"string","description":"The format to validate against."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q3owixNTZpWfhESpAM-Ss","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a string value against one of 12 known formats including email, URL, UUID, IP addresses, credit card, IBAN, phone, date, and postal codes.","exampleAgentPrompt":"Can you check if 'user@example.com' is a valid email address format?","exampleUseCases":[{"title":"User registration form email check","prompt":"Before saving this new account, can you verify that 'john.doe@mycompany.org' is a properly formatted email address?"},{"title":"Payment form IBAN validation","prompt":"The user entered 'GB29NWBK60161331926819' as their IBAN — can you confirm that's a valid IBAN format before we process the payment?"},{"title":"API input phone number check","prompt":"We're receiving phone numbers from a form — can you check if '+14155552671' is a valid E.164 formatted phone number?"}],"resultDescription":"Returns a validation result indicating whether the provided value matches the specified format. The response confirms if the string is valid or not for the chosen format type (e.g. email, uuid, ipv4, iban, phone_e164, etc.).","failureModes":["Unsupported format type provided — only the 12 enumerated formats are accepted","Value field missing from request body","Empty string submitted as value","Network or worker timeout on the Cloudflare edge","Malformed JSON body causing a parse error"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast, server-side format validation for any of the 12 supported string formats without spinning up your own regex or parsing library. Ideal for agent workflows that need to sanitize or pre-validate user inputs before downstream processing, particularly for email, phone, IBAN, UUID, IP addresses, and postal codes across US, UK, and Canada.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:46.899Z","isFirstParty":false}