Skip to content

Documentação da API do Zarv ID

Servers

https://services.zarv.comProdução

Autenticação

API de Autenticação


Login

POST
/api/v1/authentication

Autenticação para obter um token de acesso

Request Body

application/json
JSON
{
"username": "foo@example.com",
"password": "1234"
}

Responses

Autenticação realizada com sucesso

application/json
JSON
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expiresIn": 300,
"refreshExpiresIn": 3600,
"tokenType": "Bearer"
}

Consultar verificações

GET
/api/v2/verifications

Obtém todas as verificações com filtros opcionais

Authorizations

Authentication v2

For more details, see Authentication v2

TypeHTTP (bearer)

Parameters

Query Parameters

nationalId
Typestring
Example"012345678900"
Min Length11
Max Length14
status
Typestring
Example"COMPLETED"
page
Typeinteger
Example1
Minimum1
limit
Typeinteger
Example10
Minimum1
Maximum25

Responses

Lista de verificações

application/json
JSON
{
"verifications": [
{
"id": "805181ca-2956-49e1-81bb-93d1792d269d",
"workspaceId": "bc5a5b9e-3bb2-4998-b301-a6a39314d330",
"userId": "767b88ea-6f5e-4256-b6bb-726cb402cd7b",
"nationalId": "012345678900",
"name": "FOO BAR",
"status": "COMPLETED",
"verification": {
"type": "full",
"finance": {
"restrictions": true
},
"result": {
"score": 1000,
"scoreFactor": 3,
"rules": [
[
"PROFILE_SUSPECTED_PERSON_BLACKLIST",
"FINANCE_SOCIAL_ASSISTANCES",
"FINANCE_ASSET",
"RELATED_GHOST_PERSONAL_RELATIONSHIPS",
"LAWSUIT_PROCESS_REDFLAG_L1",
"LAWSUIT_SUSPECT_PROCESS_L2"
]
],
"execution": {
"startedAt": "2025-05-12T14:05:53Z",
"endedAt": "2025-05-12T14:05:53Z",
"durationMs": 799
}
},
"person": {
"profile": {
"name": "FOO BAR",
"nationalId": "012345678900",
"fiscalStatus": "REGULAR",
"obitFlag": false,
"birthDate": "1990-01-01",
"age": 30,
"gender": "F",
"contacts": {
"addresses": [
{
"type": "WORK",
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Bairro das Flores",
"city": "São Paulo",
"state": "SP",
"postalCode": "1234567890",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
],
"emails": [
"foo@bar.com"
],
"phones": [
{
"type": "MOBILE",
"number": "999999999",
"area": "13",
"country": "55",
"createdAt": "2025-05-12",
"updatedAt": "2025-05-12"
}
]
},
"indicators": {
"blacklisted": {
"risky": true,
"value": 1
},
"blacklistedCompanies": {
"risky": false,
"value": 0
},
"blacklistedRelated": {
"risky": false,
"value": 0
}
}
},
"finance": {
"salary": 1000,
"income": "5 A 7 SM",
"totalAssets": "ABAIXO DE 100K",
"taxReturns": [
{
"year": "2024",
"status": "SALDO INEXISTENTE DE IMPOSTO A PAGAR OU A RESTITUIR",
"bank": "BANCO DO BRASIL",
"updatedAt": "2025-05-12"
}
],
"collections": {
"total": 17,
"totalOrigins": 2,
"updatedAt": "2025-05-12"
},
"assistancePrograms": {
"programs": [
{
"name": "BOLSA FAMÍLIA",
"city": "São Paulo",
"state": "SP",
"active": true,
"amount": 1000,
"totalAmount": 1000,
"startedAt": "2025-05-12",
"endedAt": "2025-05-12"
}
],
"total": 1,
"totalActive": 0
},
"indicators": {
"monthlyIncome": {
"risky": false,
"value": 1000
},
"assistancePrograms": {
"risky": false,
"value": 0
},
"ltyTaxDeclarations": {
"risky": true,
"value": 1
},
"collections": {
"risky": true,
"value": 17
}
},
"restrictions": {
"registerLogs": "Cliente notificado, período de resposta encerrado, dados prontos para serem usados",
"isNegative": true,
"hasData": true,
"segment": "Atraso severo (Negativo ativo ou CCF ou ação ou atraso maior que 90 dias no CP.)",
"reportedBy": "BANCO SANTANDER BRASIL S.A.",
"reportedAt": "2025-05-12",
"status": "Ativo",
"city": "São Paulo",
"amount": "R$869,73",
"type": "Créditos e Financiamentos",
"totalAmount": 869.73,
"consultationLogs": {
"60": 0,
"90": 1,
"+90": 2,
"+30": 0
}
}
},
"lawsuits": {
},
"related": {
}
},
"version": "v4",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
}
],
"page": 1,
"limit": 10,
"total": 100
}

Criar uma verificação

POST
/api/v2/verifications

Cria uma nova verificação para um CPF ou CNPJ

Authorizations

Authentication v2

For more details, see Authentication v2

TypeHTTP (bearer)

Request Body

application/json
JSON
{
"nationalId": "012345678900",
"verifications": {
"type": "full",
"finance": {
"restrictions": true
}
}
}

Responses

Verificação criada com sucesso

application/json
JSON
{
"id": "805181ca-2956-49e1-81bb-93d1792d269d",
"workspaceId": "bc5a5b9e-3bb2-4998-b301-a6a39314d330",
"userId": "767b88ea-6f5e-4256-b6bb-726cb402cd7b",
"nationalId": "012345678900",
"name": "FOO BAR",
"status": "COMPLETED",
"verification": {
"type": "full",
"finance": {
"restrictions": true
},
"result": {
"score": 1000,
"scoreFactor": 3,
"rules": [
[
"PROFILE_SUSPECTED_PERSON_BLACKLIST",
"FINANCE_SOCIAL_ASSISTANCES",
"FINANCE_ASSET",
"RELATED_GHOST_PERSONAL_RELATIONSHIPS",
"LAWSUIT_PROCESS_REDFLAG_L1",
"LAWSUIT_SUSPECT_PROCESS_L2"
]
],
"execution": {
"startedAt": "2025-05-12T14:05:53Z",
"endedAt": "2025-05-12T14:05:53Z",
"durationMs": 799
}
},
"person": {
"profile": {
"name": "FOO BAR",
"nationalId": "012345678900",
"fiscalStatus": "REGULAR",
"obitFlag": false,
"birthDate": "1990-01-01",
"age": 30,
"gender": "F",
"contacts": {
"addresses": [
{
"type": "WORK",
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Bairro das Flores",
"city": "São Paulo",
"state": "SP",
"postalCode": "1234567890",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
],
"emails": [
"foo@bar.com"
],
"phones": [
{
"type": "MOBILE",
"number": "999999999",
"area": "13",
"country": "55",
"createdAt": "2025-05-12",
"updatedAt": "2025-05-12"
}
]
},
"indicators": {
"blacklisted": {
"risky": true,
"value": 1
},
"blacklistedCompanies": {
"risky": false,
"value": 0
},
"blacklistedRelated": {
"risky": false,
"value": 0
}
}
},
"finance": {
"salary": 1000,
"income": "5 A 7 SM",
"totalAssets": "ABAIXO DE 100K",
"taxReturns": [
{
"year": "2024",
"status": "SALDO INEXISTENTE DE IMPOSTO A PAGAR OU A RESTITUIR",
"bank": "BANCO DO BRASIL",
"updatedAt": "2025-05-12"
}
],
"collections": {
"total": 17,
"totalOrigins": 2,
"updatedAt": "2025-05-12"
},
"assistancePrograms": {
"programs": [
{
"name": "BOLSA FAMÍLIA",
"city": "São Paulo",
"state": "SP",
"active": true,
"amount": 1000,
"totalAmount": 1000,
"startedAt": "2025-05-12",
"endedAt": "2025-05-12"
}
],
"total": 1,
"totalActive": 0
},
"indicators": {
"monthlyIncome": {
"risky": false,
"value": 1000
},
"assistancePrograms": {
"risky": false,
"value": 0
},
"ltyTaxDeclarations": {
"risky": true,
"value": 1
},
"collections": {
"risky": true,
"value": 17
}
},
"restrictions": {
"registerLogs": "Cliente notificado, período de resposta encerrado, dados prontos para serem usados",
"isNegative": true,
"hasData": true,
"segment": "Atraso severo (Negativo ativo ou CCF ou ação ou atraso maior que 90 dias no CP.)",
"reportedBy": "BANCO SANTANDER BRASIL S.A.",
"reportedAt": "2025-05-12",
"status": "Ativo",
"city": "São Paulo",
"amount": "R$869,73",
"type": "Créditos e Financiamentos",
"totalAmount": 869.73,
"consultationLogs": {
"60": 0,
"90": 1,
"+90": 2,
"+30": 0
}
}
},
"lawsuits": {
},
"related": {
}
},
"version": "v4",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
}

Consultar verificação por ID

GET
/api/v2/verifications/{id}

Obtém uma verificação específica pelo ID

Authorizations

Authentication v2

For more details, see Authentication v2

TypeHTTP (bearer)

Parameters

Path Parameters

id*
Typestring
Required
Example"805181ca-2956-49e1-81bb-93d1792d269d"
Format"uuid"

Responses

Detalhes da verificação

application/json
JSON
{
"id": "805181ca-2956-49e1-81bb-93d1792d269d",
"workspaceId": "bc5a5b9e-3bb2-4998-b301-a6a39314d330",
"userId": "767b88ea-6f5e-4256-b6bb-726cb402cd7b",
"nationalId": "012345678900",
"name": "FOO BAR",
"status": "COMPLETED",
"verification": {
"type": "full",
"finance": {
"restrictions": true
},
"result": {
"score": 1000,
"scoreFactor": 3,
"rules": [
[
"PROFILE_SUSPECTED_PERSON_BLACKLIST",
"FINANCE_SOCIAL_ASSISTANCES",
"FINANCE_ASSET",
"RELATED_GHOST_PERSONAL_RELATIONSHIPS",
"LAWSUIT_PROCESS_REDFLAG_L1",
"LAWSUIT_SUSPECT_PROCESS_L2"
]
],
"execution": {
"startedAt": "2025-05-12T14:05:53Z",
"endedAt": "2025-05-12T14:05:53Z",
"durationMs": 799
}
},
"person": {
"profile": {
"name": "FOO BAR",
"nationalId": "012345678900",
"fiscalStatus": "REGULAR",
"obitFlag": false,
"birthDate": "1990-01-01",
"age": 30,
"gender": "F",
"contacts": {
"addresses": [
{
"type": "WORK",
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Bairro das Flores",
"city": "São Paulo",
"state": "SP",
"postalCode": "1234567890",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
],
"emails": [
"foo@bar.com"
],
"phones": [
{
"type": "MOBILE",
"number": "999999999",
"area": "13",
"country": "55",
"createdAt": "2025-05-12",
"updatedAt": "2025-05-12"
}
]
},
"indicators": {
"blacklisted": {
"risky": true,
"value": 1
},
"blacklistedCompanies": {
"risky": false,
"value": 0
},
"blacklistedRelated": {
"risky": false,
"value": 0
}
}
},
"finance": {
"salary": 1000,
"income": "5 A 7 SM",
"totalAssets": "ABAIXO DE 100K",
"taxReturns": [
{
"year": "2024",
"status": "SALDO INEXISTENTE DE IMPOSTO A PAGAR OU A RESTITUIR",
"bank": "BANCO DO BRASIL",
"updatedAt": "2025-05-12"
}
],
"collections": {
"total": 17,
"totalOrigins": 2,
"updatedAt": "2025-05-12"
},
"assistancePrograms": {
"programs": [
{
"name": "BOLSA FAMÍLIA",
"city": "São Paulo",
"state": "SP",
"active": true,
"amount": 1000,
"totalAmount": 1000,
"startedAt": "2025-05-12",
"endedAt": "2025-05-12"
}
],
"total": 1,
"totalActive": 0
},
"indicators": {
"monthlyIncome": {
"risky": false,
"value": 1000
},
"assistancePrograms": {
"risky": false,
"value": 0
},
"ltyTaxDeclarations": {
"risky": true,
"value": 1
},
"collections": {
"risky": true,
"value": 17
}
},
"restrictions": {
"registerLogs": "Cliente notificado, período de resposta encerrado, dados prontos para serem usados",
"isNegative": true,
"hasData": true,
"segment": "Atraso severo (Negativo ativo ou CCF ou ação ou atraso maior que 90 dias no CP.)",
"reportedBy": "BANCO SANTANDER BRASIL S.A.",
"reportedAt": "2025-05-12",
"status": "Ativo",
"city": "São Paulo",
"amount": "R$869,73",
"type": "Créditos e Financiamentos",
"totalAmount": 869.73,
"consultationLogs": {
"60": 0,
"90": 1,
"+90": 2,
"+30": 0
}
}
},
"lawsuits": {
},
"related": {
}
},
"version": "v4",
"createdAt": "2025-05-12T14:05:53Z",
"updatedAt": "2025-05-12T14:05:53Z"
}
}

Obter PDF da verificação

GET
/api/v2/verifications/{id}/pdf

Retorna os bytes do arquivo PDF de uma verificação específica pelo ID. A resposta contém o conteúdo binário do arquivo e nao uma URL para download.

Authorizations

Authentication v2

For more details, see Authentication v2

TypeHTTP (bearer)

Parameters

Path Parameters

id*
Typestring
Required
Example"805181ca-2956-49e1-81bb-93d1792d269d"
Format"uuid"

Responses

Bytes do arquivo PDF da verificação

application/pdf

Powered by VitePress OpenAPI