About this endpoint
What it does
Validates a CPF number passed in the path and returns a JSON object describing the validation result. The response includes whether the value is valid, the original input value, the document type, and an optional formatted value.
Path Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| number | String | Yes | CPF number to validate. |
Response
Returns a JSON object of type ValidationResult with is_valid, input_value, document_type, and formatted_value fields. The is_valid, input_value, and document_type fields are required in the response schema; formatted_value may be a string or null.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| is_valid | Boolean | Yes | Whether the CPF is valid. |
| input_value | String | Yes | The input value that was validated. |
| document_type | String | Yes | The document type associated with the validation result. |
| formatted_value | String | No | The formatted version of the input value, or null. |



