Skip to main content
POST
/
id-check
/
api
/
v1
/
scan
ID Check Composto
curl --request POST \
  --url https://api.valid.com/id-check/api/v1/scan \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "identity": {
    "type": "<string>",
    "value": "<string>"
  },
  "attributes": {
    "biographic": {
      "name": "<string>",
      "socialName": "<string>",
      "motherName": "<string>",
      "fatherName": "<string>",
      "dateOfBirth": "<string>",
      "gender": "<string>",
      "nationality": "<string>"
    },
    "biometrics": {
      "face": {
        "image": "<string>",
        "referenceImage": "<string>"
      },
      "fingerprints": [
        {
          "position": 123,
          "image": "<string>"
        }
      ]
    },
    "documents": {
      "cpf": {
        "number": "<string>",
        "status": "<string>",
        "registrationDate": "<string>"
      },
      "cnh": {
        "registrationNumber": "<string>",
        "category": "<string>",
        "status": "<string>",
        "foreignRegistration": "<string>",
        "firstIssueDate": "<string>",
        "lastIssueDate": "<string>",
        "expirationDate": "<string>",
        "hasRestriction": true,
        "observations": "<string>",
        "qrCode": "<string>"
      },
      "rg": {
        "number": "<string>",
        "issuer": "<string>",
        "issuerState": "<string>"
      },
      "ctps": {
        "number": "<string>",
        "issuer": "<string>",
        "issuerState": "<string>"
      },
      "passport": {
        "number": "<string>",
        "issuer": "<string>",
        "issuerState": "<string>"
      },
      "militaryService": {
        "number": "<string>",
        "issuer": "<string>",
        "issuerState": "<string>"
      }
    },
    "address": {
      "street": "<string>",
      "number": "<string>",
      "complement": "<string>",
      "neighborhood": "<string>",
      "postalCode": "<string>",
      "city": "<string>",
      "state": "<string>"
    }
  }
}
'
import requests

url = "https://api.valid.com/id-check/api/v1/scan"

payload = {
    "identity": {
        "type": "<string>",
        "value": "<string>"
    },
    "attributes": {
        "biographic": {
            "name": "<string>",
            "socialName": "<string>",
            "motherName": "<string>",
            "fatherName": "<string>",
            "dateOfBirth": "<string>",
            "gender": "<string>",
            "nationality": "<string>"
        },
        "biometrics": {
            "face": {
                "image": "<string>",
                "referenceImage": "<string>"
            },
            "fingerprints": [
                {
                    "position": 123,
                    "image": "<string>"
                }
            ]
        },
        "documents": {
            "cpf": {
                "number": "<string>",
                "status": "<string>",
                "registrationDate": "<string>"
            },
            "cnh": {
                "registrationNumber": "<string>",
                "category": "<string>",
                "status": "<string>",
                "foreignRegistration": "<string>",
                "firstIssueDate": "<string>",
                "lastIssueDate": "<string>",
                "expirationDate": "<string>",
                "hasRestriction": True,
                "observations": "<string>",
                "qrCode": "<string>"
            },
            "rg": {
                "number": "<string>",
                "issuer": "<string>",
                "issuerState": "<string>"
            },
            "ctps": {
                "number": "<string>",
                "issuer": "<string>",
                "issuerState": "<string>"
            },
            "passport": {
                "number": "<string>",
                "issuer": "<string>",
                "issuerState": "<string>"
            },
            "militaryService": {
                "number": "<string>",
                "issuer": "<string>",
                "issuerState": "<string>"
            }
        },
        "address": {
            "street": "<string>",
            "number": "<string>",
            "complement": "<string>",
            "neighborhood": "<string>",
            "postalCode": "<string>",
            "city": "<string>",
            "state": "<string>"
        }
    }
}
headers = {
    "x-api-key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    identity: {type: '<string>', value: '<string>'},
    attributes: {
      biographic: {
        name: '<string>',
        socialName: '<string>',
        motherName: '<string>',
        fatherName: '<string>',
        dateOfBirth: '<string>',
        gender: '<string>',
        nationality: '<string>'
      },
      biometrics: {
        face: {image: '<string>', referenceImage: '<string>'},
        fingerprints: [{position: 123, image: '<string>'}]
      },
      documents: {
        cpf: {number: '<string>', status: '<string>', registrationDate: '<string>'},
        cnh: {
          registrationNumber: '<string>',
          category: '<string>',
          status: '<string>',
          foreignRegistration: '<string>',
          firstIssueDate: '<string>',
          lastIssueDate: '<string>',
          expirationDate: '<string>',
          hasRestriction: true,
          observations: '<string>',
          qrCode: '<string>'
        },
        rg: {number: '<string>', issuer: '<string>', issuerState: '<string>'},
        ctps: {number: '<string>', issuer: '<string>', issuerState: '<string>'},
        passport: {number: '<string>', issuer: '<string>', issuerState: '<string>'},
        militaryService: {number: '<string>', issuer: '<string>', issuerState: '<string>'}
      },
      address: {
        street: '<string>',
        number: '<string>',
        complement: '<string>',
        neighborhood: '<string>',
        postalCode: '<string>',
        city: '<string>',
        state: '<string>'
      }
    }
  })
};

fetch('https://api.valid.com/id-check/api/v1/scan', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.valid.com/id-check/api/v1/scan",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'identity' => [
        'type' => '<string>',
        'value' => '<string>'
    ],
    'attributes' => [
        'biographic' => [
                'name' => '<string>',
                'socialName' => '<string>',
                'motherName' => '<string>',
                'fatherName' => '<string>',
                'dateOfBirth' => '<string>',
                'gender' => '<string>',
                'nationality' => '<string>'
        ],
        'biometrics' => [
                'face' => [
                                'image' => '<string>',
                                'referenceImage' => '<string>'
                ],
                'fingerprints' => [
                                [
                                                                'position' => 123,
                                                                'image' => '<string>'
                                ]
                ]
        ],
        'documents' => [
                'cpf' => [
                                'number' => '<string>',
                                'status' => '<string>',
                                'registrationDate' => '<string>'
                ],
                'cnh' => [
                                'registrationNumber' => '<string>',
                                'category' => '<string>',
                                'status' => '<string>',
                                'foreignRegistration' => '<string>',
                                'firstIssueDate' => '<string>',
                                'lastIssueDate' => '<string>',
                                'expirationDate' => '<string>',
                                'hasRestriction' => true,
                                'observations' => '<string>',
                                'qrCode' => '<string>'
                ],
                'rg' => [
                                'number' => '<string>',
                                'issuer' => '<string>',
                                'issuerState' => '<string>'
                ],
                'ctps' => [
                                'number' => '<string>',
                                'issuer' => '<string>',
                                'issuerState' => '<string>'
                ],
                'passport' => [
                                'number' => '<string>',
                                'issuer' => '<string>',
                                'issuerState' => '<string>'
                ],
                'militaryService' => [
                                'number' => '<string>',
                                'issuer' => '<string>',
                                'issuerState' => '<string>'
                ]
        ],
        'address' => [
                'street' => '<string>',
                'number' => '<string>',
                'complement' => '<string>',
                'neighborhood' => '<string>',
                'postalCode' => '<string>',
                'city' => '<string>',
                'state' => '<string>'
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "x-api-key: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.valid.com/id-check/api/v1/scan"

	payload := strings.NewReader("{\n  \"identity\": {\n    \"type\": \"<string>\",\n    \"value\": \"<string>\"\n  },\n  \"attributes\": {\n    \"biographic\": {\n      \"name\": \"<string>\",\n      \"socialName\": \"<string>\",\n      \"motherName\": \"<string>\",\n      \"fatherName\": \"<string>\",\n      \"dateOfBirth\": \"<string>\",\n      \"gender\": \"<string>\",\n      \"nationality\": \"<string>\"\n    },\n    \"biometrics\": {\n      \"face\": {\n        \"image\": \"<string>\",\n        \"referenceImage\": \"<string>\"\n      },\n      \"fingerprints\": [\n        {\n          \"position\": 123,\n          \"image\": \"<string>\"\n        }\n      ]\n    },\n    \"documents\": {\n      \"cpf\": {\n        \"number\": \"<string>\",\n        \"status\": \"<string>\",\n        \"registrationDate\": \"<string>\"\n      },\n      \"cnh\": {\n        \"registrationNumber\": \"<string>\",\n        \"category\": \"<string>\",\n        \"status\": \"<string>\",\n        \"foreignRegistration\": \"<string>\",\n        \"firstIssueDate\": \"<string>\",\n        \"lastIssueDate\": \"<string>\",\n        \"expirationDate\": \"<string>\",\n        \"hasRestriction\": true,\n        \"observations\": \"<string>\",\n        \"qrCode\": \"<string>\"\n      },\n      \"rg\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"ctps\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"passport\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"militaryService\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      }\n    },\n    \"address\": {\n      \"street\": \"<string>\",\n      \"number\": \"<string>\",\n      \"complement\": \"<string>\",\n      \"neighborhood\": \"<string>\",\n      \"postalCode\": \"<string>\",\n      \"city\": \"<string>\",\n      \"state\": \"<string>\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.valid.com/id-check/api/v1/scan")
  .header("x-api-key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"identity\": {\n    \"type\": \"<string>\",\n    \"value\": \"<string>\"\n  },\n  \"attributes\": {\n    \"biographic\": {\n      \"name\": \"<string>\",\n      \"socialName\": \"<string>\",\n      \"motherName\": \"<string>\",\n      \"fatherName\": \"<string>\",\n      \"dateOfBirth\": \"<string>\",\n      \"gender\": \"<string>\",\n      \"nationality\": \"<string>\"\n    },\n    \"biometrics\": {\n      \"face\": {\n        \"image\": \"<string>\",\n        \"referenceImage\": \"<string>\"\n      },\n      \"fingerprints\": [\n        {\n          \"position\": 123,\n          \"image\": \"<string>\"\n        }\n      ]\n    },\n    \"documents\": {\n      \"cpf\": {\n        \"number\": \"<string>\",\n        \"status\": \"<string>\",\n        \"registrationDate\": \"<string>\"\n      },\n      \"cnh\": {\n        \"registrationNumber\": \"<string>\",\n        \"category\": \"<string>\",\n        \"status\": \"<string>\",\n        \"foreignRegistration\": \"<string>\",\n        \"firstIssueDate\": \"<string>\",\n        \"lastIssueDate\": \"<string>\",\n        \"expirationDate\": \"<string>\",\n        \"hasRestriction\": true,\n        \"observations\": \"<string>\",\n        \"qrCode\": \"<string>\"\n      },\n      \"rg\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"ctps\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"passport\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"militaryService\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      }\n    },\n    \"address\": {\n      \"street\": \"<string>\",\n      \"number\": \"<string>\",\n      \"complement\": \"<string>\",\n      \"neighborhood\": \"<string>\",\n      \"postalCode\": \"<string>\",\n      \"city\": \"<string>\",\n      \"state\": \"<string>\"\n    }\n  }\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.valid.com/id-check/api/v1/scan")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"identity\": {\n    \"type\": \"<string>\",\n    \"value\": \"<string>\"\n  },\n  \"attributes\": {\n    \"biographic\": {\n      \"name\": \"<string>\",\n      \"socialName\": \"<string>\",\n      \"motherName\": \"<string>\",\n      \"fatherName\": \"<string>\",\n      \"dateOfBirth\": \"<string>\",\n      \"gender\": \"<string>\",\n      \"nationality\": \"<string>\"\n    },\n    \"biometrics\": {\n      \"face\": {\n        \"image\": \"<string>\",\n        \"referenceImage\": \"<string>\"\n      },\n      \"fingerprints\": [\n        {\n          \"position\": 123,\n          \"image\": \"<string>\"\n        }\n      ]\n    },\n    \"documents\": {\n      \"cpf\": {\n        \"number\": \"<string>\",\n        \"status\": \"<string>\",\n        \"registrationDate\": \"<string>\"\n      },\n      \"cnh\": {\n        \"registrationNumber\": \"<string>\",\n        \"category\": \"<string>\",\n        \"status\": \"<string>\",\n        \"foreignRegistration\": \"<string>\",\n        \"firstIssueDate\": \"<string>\",\n        \"lastIssueDate\": \"<string>\",\n        \"expirationDate\": \"<string>\",\n        \"hasRestriction\": true,\n        \"observations\": \"<string>\",\n        \"qrCode\": \"<string>\"\n      },\n      \"rg\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"ctps\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"passport\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      },\n      \"militaryService\": {\n        \"number\": \"<string>\",\n        \"issuer\": \"<string>\",\n        \"issuerState\": \"<string>\"\n      }\n    },\n    \"address\": {\n      \"street\": \"<string>\",\n      \"number\": \"<string>\",\n      \"complement\": \"<string>\",\n      \"neighborhood\": \"<string>\",\n      \"postalCode\": \"<string>\",\n      \"city\": \"<string>\",\n      \"state\": \"<string>\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
{
  "scanId": "123e4567-e89b-12d3-a456-426614174000",
  "identity": {
	  "type": "cpf",
	  "value": true
  },
  "attributes": {
    "biographic": {
      "name": true,
      "nameSimilarity": 9.8,
      "socialName": true,
      "socialNameSimilarity": 9.9,
      "motherName": true,
      "motherNameSimilarity": 10.0,
      "fatherName": false,
      "fatherNameSimilarity": 1.2,
      "dateOfBirth": true,
      "gender": true,
      "nationality": true
    },
    "biometrics": {
      "face": {
        "confidence": "HIGH",
      },
      "fingerprints": [
        {
          "position": 1,
          "confidence": "MAXIMUM",
        },
        {
          "position": 2,
          "confidence": "HIGH",
        }
      ]
    },
    "documents": {
      "cpf": {
        "number": true,
        "status": true,
        "registrationDate": true
      },
      "cnh": {
        "registrationNumber": true,
        "category": true,
        "status": true,
        "foreignRegistration": false,
        "firstIssueDate": true,
        "lastIssueDate": true,
        "expirationDate": true,
        "hasRestriction": true,
        "observations": true,
        "qrCode": {
          "returnCode": "0",
          "name": true,
          "nameSimilarity": 9.9,
          "decodedName": "JOAO DA SILVA",
          "decodedCivilName": "JOAO DA SILVA",
          "sourceDocument": true,
          "sourceDocumentSimilarity": 10.0,
          "decodedSourceDocument": "CNH",
          "dateOfBirth": true,
          "decodedDateOfBirth": "1990-01-01",
          "motherName": true,
          "motherNameSimilarity": 9.7,
          "decodedMotherName": "MARIA DA SILVA",
          "fatherName": false,
          "fatherNameSimilarity": 2.2,
          "decodedFatherName": "JOSE DA SILVA",
          "decodedPermission": "ACC",
          "decodedAcc": "N",
          "category": true,
          "categorySimilarity": 10.0,
          "decodedCategory": "B",
          "registrationNumber": true,
          "decodedRegistrationNumber": "12345678900",
          "expirationDate": true,
          "decodedExpirationDate": "2030-01-15",
          "firstLicenseDate": true,
          "decodedFirstLicenseDate": "2010-01-15",
          "observations": true,
          "observationsSimilarity": 9.1,
          "decodedObservations": "EAR;A",
          "decodedIssueLocation": "SAO PAULO",
          "decodedIssueState": "SP",
          "lastIssueDate": true,
          "decodedLastIssueDate": "2020-01-15",
          "decodedValidationNumber": "123456789",
          "decodedRenachNumber": "987654321"
        }
      },
      "rg": {
        "number": true,
        "issuer": true,
        "issuerState": true
      },
      "ctps": {
        "number": true,
        "issuer": true,
        "issuerState": true
      },
      "passport": {
        "number": false,
        "issuer": true,
        "issuerState": true
      },
      "militaryService": {
        "number": true,
        "issuer": true,
        "issuerState": true
      }
    },
    "address": {
      "street": true,
      "streetSimilarity": 9.4,
      "number": true,
      "numberSimilarity": 10.0,
      "complement": false,
      "complementSimilarity": 2.1,
      "neighborhood": true,
      "neighborhoodSimilarity": 9.9,
      "postalCode": true,
      "city": true,
      "citySimilarity": 10.0,
      "state": true,
    }
  },
  "metadata": {
    "processingTime": 2345,
    "timestamp": "2026-04-20T19:04:17.412Z"
  }
}
{
    "success": false,
    "error": {
        "issues": [
            {
                "code": "invalid_type",
                "expected": "string",
                "received": "undefined",
                "path": [
                    "cpf"
                ],
                "message": "Required"
            }
        ],
        "name": "ZodError"
    }
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "Unexpected error while processing scan request",
  "requestId": "123e4567-e89b-12d3-a456-426614174000",
  "timestamp": "2026-04-20T19:04:17.412Z"
}

Request Body

identity
object
required
Dados de identificação mínima do titular. Obrigatório informar um tipo e valor do documento
attributes
object
required
Conjunto de atributos utilizados na validação composta da identidade.

Response

scanId
string
Identificador interno da transação.Exemplo: 123e4567-e89b-12d3-a456-426614174000
identity
object
Dados do documento consultado
attributes
object
Resultado consolidado das validações executadas.
metadata
object
Metadados da requisição
{
  "scanId": "123e4567-e89b-12d3-a456-426614174000",
  "identity": {
	  "type": "cpf",
	  "value": true
  },
  "attributes": {
    "biographic": {
      "name": true,
      "nameSimilarity": 9.8,
      "socialName": true,
      "socialNameSimilarity": 9.9,
      "motherName": true,
      "motherNameSimilarity": 10.0,
      "fatherName": false,
      "fatherNameSimilarity": 1.2,
      "dateOfBirth": true,
      "gender": true,
      "nationality": true
    },
    "biometrics": {
      "face": {
        "confidence": "HIGH",
      },
      "fingerprints": [
        {
          "position": 1,
          "confidence": "MAXIMUM",
        },
        {
          "position": 2,
          "confidence": "HIGH",
        }
      ]
    },
    "documents": {
      "cpf": {
        "number": true,
        "status": true,
        "registrationDate": true
      },
      "cnh": {
        "registrationNumber": true,
        "category": true,
        "status": true,
        "foreignRegistration": false,
        "firstIssueDate": true,
        "lastIssueDate": true,
        "expirationDate": true,
        "hasRestriction": true,
        "observations": true,
        "qrCode": {
          "returnCode": "0",
          "name": true,
          "nameSimilarity": 9.9,
          "decodedName": "JOAO DA SILVA",
          "decodedCivilName": "JOAO DA SILVA",
          "sourceDocument": true,
          "sourceDocumentSimilarity": 10.0,
          "decodedSourceDocument": "CNH",
          "dateOfBirth": true,
          "decodedDateOfBirth": "1990-01-01",
          "motherName": true,
          "motherNameSimilarity": 9.7,
          "decodedMotherName": "MARIA DA SILVA",
          "fatherName": false,
          "fatherNameSimilarity": 2.2,
          "decodedFatherName": "JOSE DA SILVA",
          "decodedPermission": "ACC",
          "decodedAcc": "N",
          "category": true,
          "categorySimilarity": 10.0,
          "decodedCategory": "B",
          "registrationNumber": true,
          "decodedRegistrationNumber": "12345678900",
          "expirationDate": true,
          "decodedExpirationDate": "2030-01-15",
          "firstLicenseDate": true,
          "decodedFirstLicenseDate": "2010-01-15",
          "observations": true,
          "observationsSimilarity": 9.1,
          "decodedObservations": "EAR;A",
          "decodedIssueLocation": "SAO PAULO",
          "decodedIssueState": "SP",
          "lastIssueDate": true,
          "decodedLastIssueDate": "2020-01-15",
          "decodedValidationNumber": "123456789",
          "decodedRenachNumber": "987654321"
        }
      },
      "rg": {
        "number": true,
        "issuer": true,
        "issuerState": true
      },
      "ctps": {
        "number": true,
        "issuer": true,
        "issuerState": true
      },
      "passport": {
        "number": false,
        "issuer": true,
        "issuerState": true
      },
      "militaryService": {
        "number": true,
        "issuer": true,
        "issuerState": true
      }
    },
    "address": {
      "street": true,
      "streetSimilarity": 9.4,
      "number": true,
      "numberSimilarity": 10.0,
      "complement": false,
      "complementSimilarity": 2.1,
      "neighborhood": true,
      "neighborhoodSimilarity": 9.9,
      "postalCode": true,
      "city": true,
      "citySimilarity": 10.0,
      "state": true,
    }
  },
  "metadata": {
    "processingTime": 2345,
    "timestamp": "2026-04-20T19:04:17.412Z"
  }
}
{
    "success": false,
    "error": {
        "issues": [
            {
                "code": "invalid_type",
                "expected": "string",
                "received": "undefined",
                "path": [
                    "cpf"
                ],
                "message": "Required"
            }
        ],
        "name": "ZodError"
    }
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "Unexpected error while processing scan request",
  "requestId": "123e4567-e89b-12d3-a456-426614174000",
  "timestamp": "2026-04-20T19:04:17.412Z"
}