---
title: "CSV Completa Assíncrona"
description: "API Veicular Completa - Dados CSV em Tempo Recorde"
lang: en
canonical: https://doc.apibrasil.io/apis/creditos/5943ca1b-9768-4503-9133-caba1ce94995
markdown: https://doc.apibrasil.io/apis/creditos/5943ca1b-9768-4503-9133-caba1ce94995.md
source: apibrasil-documentation
---

# CSV Completa Assíncrona

> API Veicular Completa - Dados CSV em Tempo Recorde

- **Category:** Asynchronous Lookups
- **Billing:** per query, with the Bearer Token only
- **Price:** R$4.00 per query
- **Limit:** 999,000 per month
- **Registration:** requires a CNPJ
- **Version:** v2
- **Published by:** APIBrasil
- **OpenAPI specification:** https://doc.apibrasil.io/apis/creditos/5943ca1b-9768-4503-9133-caba1ce94995/openapi.json

⚠ This API does not serve in production yet, only in the sandbox.

## How to call

**Base address:** `https://gateway.apibrasil.io/api/v2`

Authentication: the `Authorization: Bearer <token>` header. Nothing else.

With `homolog: true` in the body, the gateway answers from a fixed base, with the real shape of the response, and does not charge. The CPF 00000000000 belongs to that base and to nobody: use it in tests, never in production.

## Endpoints (2 endpoints)

### 1. POST /consulta/veiculos/credits

API CSV Completa Assíncrona - Agilidade e Eficiência na Análise de Dados

A API CSV Completa Assíncrona permite que você integre rapidamente a extração e análise de dados dos serviços Renainf, Renajud, Bin e Proprietário diretamente no seu sistema, otimizando processos e reduzindo o tempo operacional. Com um simples POST para o endpoint consulta/veiculos/credits, sua empresa recebe no webhook_url retornos completos e estruturados em JSON, prontos para alimentar fluxos internos, auditorias, conciliações e iniciativas de automação. Garanta valor ao seu negócio centralizando informações relevantes em uma única chamada assíncrona, ampliando o potencial de decisão, compliance e customização das suas soluções.

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/consulta/veiculos/credits`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "tipo": "csv-renainf-renajud-bin-proprietario-async",
  "placa": "ABC1D23",
  "webhook_url": "https://webhook.com.br",
  "homolog": true
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/consulta/veiculos/credits" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"tipo":"csv-renainf-renajud-bin-proprietario-async","placa":"ABC1D23","webhook_url":"https://webhook.com.br","homolog":true}'
```

This endpoint accepts `homolog: true` in the body: the response comes back with valid data, `api_limit_for` equal to `homolog` and no charge.

**Sample response, from the catalog**

```json
{
  "user": {
    "first_name": "[omitido]",
    "email": "[omitido]",
    "cellphone": "[omitido]",
    "notification": "yes"
  },
  "balance": "820,150",
  "balance_before": "820,150",
  "tax": "0,000",
  "status_code": 200,
  "error": false,
  "message": "Dados validos em homologacao! Voce nao foi tarifado e a requisicao nao foi contabilizada.",
  "valor_consulta": 0,
  "api_limit_for": "homolog",
  "homolog": true,
  "data": {
    "accepted": true,
    "job-id": "a39c209e-db73-44ec-b6bf-af38a350b7fb",
    "msg": "consulta em processamento; resultado sera enviado ao webhook_url"
  }
}
```

### 2. POST /consulta/vehicles/credits

API CSV Completa Assíncrona - Informações Veiculares em Massa com Agilidade

A API CSV Completa Assíncrona permite buscar, pelo job-id recebido no disparo, o andamento e o resultado da consulta assíncrona (tipo consultar-chave-csv-renainf-renajud-bin-proprietario), entregando agilidade e praticidade para o seu sistema. Com integração rápida e simples via POST, você obtém respostas estruturadas, facilitando o acompanhamento e análise de dados RENAINF, RENAJUD, BIN e proprietário em lote. Melhore a eficiência operacional do seu negócio, ganhe tempo com automação e amplie suas possibilidades de uso, desde verificações massivas até gestão inteligente de veículos em sua plataforma.

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/consulta/vehicles/credits`
- **Route version:** v2
- **Price of this operation:** R$0.00 per query

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "tipo": "consultar-chave-csv-renainf-renajud-bin-proprietario",
  "job-id": "a39c209e-db73-44ec-b6bf-af38a350b7fb",
  "homolog": true
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/consulta/vehicles/credits" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"tipo":"consultar-chave-csv-renainf-renajud-bin-proprietario","job-id":"a39c209e-db73-44ec-b6bf-af38a350b7fb","homolog":true}'
```

This endpoint accepts `homolog: true` in the body: the response comes back with valid data, `api_limit_for` equal to `homolog` and no charge.

**Sample response, from the catalog**

```json
{
  "user": {
    "first_name": "[omitido]",
    "email": "[omitido]",
    "cellphone": "[omitido]",
    "notification": "yes"
  },
  "balance": "820,150",
  "balance_before": "820,150",
  "tax": "0,000",
  "status_code": 200,
  "error": false,
  "message": "Dados validos em homologacao! Voce nao foi tarifado e a requisicao nao foi contabilizada.",
  "valor_consulta": 0,
  "api_limit_for": "homolog",
  "homolog": true,
  "data": {
    "job-id": "a39c209e-db73-44ec-b6bf-af38a350b7fb",
    "job_status": "completed",
    "payload": {
      "consulta": {
        "CicId": 35,
        "debitado": true,
        "id": "00000000-0000-0000-0000-000000000000",
        "pdf": "/pdf/mockpdf",
        "valor": 5
      },
      "dados": {
        "veicular": {
          "alerta_indicio": {
            "descricao_ocorrencia": "NENHUM ALERTA DE INDICIO DE SINISTRO ENCONTRADO NAS BASES CONSULTADAS",
            "existe_ocorrencia": "0",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          },
          "bin_nacional": {
            "alerta_informativo": "",
            "ano_fabricacao": "2013",
            "ano_modelo": "2014",
            "capacidade_carga": "0",
            "categoria_veiculo": "PARTICULAR",
            "chassi": "9ZZZZ99Z9Z9999999",
            "combustivel": "ALCOOL/GASOLINA",
            "cor_veiculo": "PRETA",
            "data_emissao_crlv": "06/12/2023",
            "data_emissao_ultimo_crv": "06/12/2023",
            "especie_veiculo": "PASSAGEIRO",
            "logo_fabricante": {
              "imagem_url": ""
            },
            "marca_modelo": "MARCA/MODELO FICTICIO",
            "municipio": "CIDADE FICTICIA",
            "numero_eixos": "2",
            "off_line": "0",
            "pbt": "2",
            "placa": "ABC1D23",
            "potencia_veiculo": "73",
            "procedencia": "NACIONAL",
            "proprietario": {
              "documento": "00000000000",
              "nome": "FULANO DE TAL"
            },
            "quantidade_passageiros": "5",
            "renavam": "00000000000",
            "restricoes": {
              "existe_restricao_geral": "0",
              "existe_restricao_renajud": "0",
              "existe_restricao_roubo_furto": "0",
              "mensagens_restricoes": [],
              "veiculo_baixado": "0"
            },
            "situacao": "EM CIRCULACAO",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            },
            "tipo_carroceria": "NAO APLICAVEL",
            "tipo_veiculo": "AUTOMOVEL",
            "uf": "XX"
          },
          "csv": {
            "mensagem_observacao": "LAUDO CSV CORTESIA COM DADOS FICTICIOS. CONSULTE BASES OFICIAIS PARA INFORMACOES REAIS.",
            "ocorrencias": [],
            "quantidade_ocorrencia": "0",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          },
          "precificador": {
            "ocorrencias": [
              {
                "ano_modelo": "2014",
                "codigo": "000000-0",
                "fabricante_modelo": "MODELO FICTICIO 1.0 FLEX 5P",
                "informante": "FIPE",
                "preco": "00000,00",
                "vigencia": "SETEMBRO DE 2025"
              }
            ],
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          },
          "proprietario_atual_veiculo": {
            "ano_fabricacao": "2013",
            "ano_modelo": "2014",
            "chassi": "9ZZZZ99Z9Z9999999",
            "combustivel": "ALCO/GASOL",
            "cor_veiculo": "PRETA",
            "marca_modelo": "MARCA MODELO FICTICIO",
            "motor": "FAKE1234567890",
            "municipio": "CIDADE FICTICIA",
            "placa": "ABC1D23",
            "proprietario_documento": "000.000.000-00",
            "proprietario_nome": "FULANO DE TAL",
            "renavam": "000000000",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            },
            "uf": "XX"
          },
          "recall": {
            "quantidade_ocorrencias": "0",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          },
          "renainf": {
            "ocorrencias": [],
            "qtd_ocorrencias": "0",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          },
          "renajud": {
            "msg_alerta": "",
            "quantidade_ocorrencias": "0",
            "status_retorno": {
              "codigo": "1",
              "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
            }
          }
        }
      },
      "msg": "CONSULTA CONCLUIDA COM SUCESSO",
      "success": true
    }
  }
}
```

In the sample responses, the fields of the account that generated the sample (`user.first_name`, `user.email`, `user.cellphone`) come out as `[omitido]`. The rest is what the catalog publishes.

## Pitfalls: what an integration gets wrong without warning

Established from the responses the catalog itself publishes. In every one of them the code works on the happy path and fails silently everywhere else:

1. **The error arrives in the BODY, with HTTP 200.**
   The response carries a boolean `error` field and a `message`. Checking only `response.ok` or the HTTP status lets a failure through as a success. ALWAYS check `error === false` before reading `data`.

2. **`balance`, `tax` and `extra_charges.total` are STRINGS in Brazilian format — and the format varies between APIs.**
   Values seen in the catalog: `"154,380"`, `"497,84"`, `"0,000"` and `"0.19"`. Comma in some, dot in another; three decimal places in some, two in another. In JavaScript, `parseFloat("154,380")` returns `154` and drops the cents with no error at all, and `Number("154,380")` returns `NaN`. Write a converter that handles both separators, and never use these fields in a financial decision without converting them.

3. **Every call costs money.**
   Blind retries multiply the bill. Never automatically repeat a 4xx: a bad parameter repeated is still bad, and still charged. Retry only timeouts and 5xx, with exponential backoff and a small attempt ceiling.

4. **HTTP 402 means insufficient balance, and retrying does not fix it.**
   It is the one status that needs a human — a top-up. Treat it as a terminal error with its own message, and do not lump it in with generic 4xx.

5. **`extra_charges` bills on top of the lookup price.**
   When the body asks for add-on services, the response lists each one with its price plus a `total` that is NOT included in the base amount. If you show cost to an end user, add both.

## See also

- OpenAPI specification: https://doc.apibrasil.io/apis/creditos/5943ca1b-9768-4503-9133-caba1ce94995/openapi.json
- API catalog: [API catalog](https://doc.apibrasil.io/apis.md)
- Official SDKs: [Official SDKs](https://doc.apibrasil.io/sdks.md)
- Documentation index: https://doc.apibrasil.io/llms.txt
- HTML version of this page: https://doc.apibrasil.io/apis/creditos/5943ca1b-9768-4503-9133-caba1ce94995
