{"type":"cpf","value":"11144477735","valid":true,"formatted":"111.444.777-35","digits":"11144477735"}
curl --location --request GET 'https://zylalabs.com/api/13138/identity+document+validator+api/26652/validate+document?type=cpf&value=11144477735' --header 'Authorization: Bearer YOUR_API_KEY'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Identity Document Validator API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
(Economize 2 meses com cobrança anual 🎉)
Empresas líderes confiam em nós
Validate and format identity and business document numbers with correct check digit verification. Instantly confirm whether a given number is valid and receive it in a clean formatted form. The service can also generate valid sample numbers for software testing and quality assurance. Simple, fast and stateless.
The Validate Document endpoint returns data regarding the validity of an identity or business document number. It includes fields indicating the document type, the original number, its validity status, a formatted version, and the raw digits.
The key fields in the response data include "type" (document type), "value" (original number), "valid" (boolean indicating validity), "formatted" (cleanly formatted number), and "digits" (raw number without formatting).
The response data is organized in a JSON format, containing key-value pairs. Each response includes the document type, the original number, its validity status, a formatted version, and the unformatted digits, making it easy to parse and utilize.
The Validate Document endpoint provides information on the validity of various identity and business document numbers, including their formatted versions and whether they pass check digit verification.
The Validate Document endpoint accepts parameters such as "document type" (e.g., CPF, CNPJ) and "number" (the document number to validate). Users must specify these to receive accurate validation results.
A precisão dos dados é mantida por meio de rigorosos processos de verificação de dígitos de controle e atualizações regulares dos algoritmos de validação garantindo que a API forneça resultados confiáveis e válidos para números de documentos
Typical use cases include validating user identity during onboarding processes, ensuring compliance in financial transactions, and generating valid sample numbers for software testing and quality assurance.
Users can utilize the returned data by checking the "valid" field to confirm document authenticity, using the "formatted" field for display purposes, and leveraging the "type" field to understand the document category for further processing.