SEE BEYOND
Developers · API v1

Connect Valuez to your platform

Read companies, valuation reports and financial statements, and write accounting entries from your ERP, BI or accounting-firm system. REST, JSON and a token generated by the client.

  • REST + JSON
  • Personal token with scopes
  • OpenAPI 3.1 specification
01

Overview

API v1 is REST over HTTPS, with JSON request and response bodies (UTF-8). Field names are in Portuguese, as in the platform, and do not change within v1.

Base URLhttps://app.valuez.com.br/api/v1If you access Valuez through a partner's domain (your accounting firm, for example), use that domain with the same /api/v1 path. A token only works on the domain where it was generated.
  • Every successful response carries its content in dados. Every error carries erro.codigo and erro.mensagem.
  • Dates in ISO 8601, in UTC (2026-10-14T13:22:05.000Z).
  • Monetary values as JSON numbers, in currency units (reais, not cents or thousands).
  • The full specification is at /api/v1/openapi.json, ready to import into Postman, Insomnia or a client generator.
02

Authentication

Every request carries a token in the Authorization header. The client generates the token inside the platform:

  1. Sign in to ValuezWith the user whose permissions the integration will use.
  2. Open Meu perfil → Tokens de API (My profile → API tokens)From the account menu in the top-right corner, or directly at app.valuez.com.br/perfil.
  3. Choose name, companies, expiry and accessRead only, or read and write. Restrict it to one company when the integration only needs that one.
  4. Copy the tokenIt is shown only once. Store it in a secrets vault, never in source code.
HeaderAuthorization: Bearer vz_1a2b3c4d_…The token starts with vz_. Secret scanners recognize the prefix; if a token leaks, revoke it on the same screen.

Scopes

ScopeWhat it allows
leituraCompanies, reports, fiscal periods, entries and the chart of accounts.
escritaOpening fiscal periods and writing entries. Always comes with read.

The token acts with the current permissions of whoever generated it. If that person loses access to a company, the integration loses it too, on the next call. A token with write scope cannot write to a company where its owner only has read access.

03

Availability

The API is included in all paid plans. The trial period does not include the API.

Availability is checked per company, on every call. GET /empresas lists only companies with the API active. A call to a company whose subscription is not up to date returns 402 PLANO_SEM_API.

04

Limits

LimitValue
Requests per token120 per minute
Entries per write request500
Active tokens per user10

The counter resets at every full minute. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (epoch in seconds). Above the limit, the response is 429 LIMITE_EXCEDIDO with Retry-After in seconds: wait that long before trying again.

05

Endpoints

All paths are relative to the base URL. The examples use the token from the VALUEZ_TOKEN environment variable.

List companies

GET/empresasScope leitura

The companies the token reaches whose plan includes the API, each with its latest saved report.

Request
curl https://app.valuez.com.br/api/v1/empresas \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": [
    {
      "id": "01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10",
      "nome": "Padaria Aurora",
      "razaoSocial": "Aurora Alimentos Ltda.",
      "cnpj": "12345678000190",
      "cidade": "Campinas",
      "uf": "SP",
      "regimeTributario": "SIMPLES",
      "ultimoLaudo": {
        "versao": 3,
        "valor": 8200000,
        "faixaBaixa": 7100000,
        "faixaAlta": 9400000,
        "moeda": "BRL",
        "calculadoEm": "2026-10-14T13:22:05.000Z",
        "publicado": true
      }
    }
  ]
}

Read a company

GET/empresas/{empresaId}Scope leitura

Registration data and latest report. A company outside the token's reach returns 404.

Request
curl https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10 \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": {
    "id": "01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10",
    "nome": "Padaria Aurora",
    "razaoSocial": "Aurora Alimentos Ltda.",
    "cnpj": "12345678000190",
    "cidade": "Campinas",
    "uf": "SP",
    "regimeTributario": "SIMPLES",
    "ultimoLaudo": {
      "versao": 3,
      "valor": 8200000,
      "faixaBaixa": 7100000,
      "faixaAlta": 9400000,
      "moeda": "BRL",
      "calculadoEm": "2026-10-14T13:22:05.000Z",
      "publicado": true
    }
  }
}

List reports

GET/empresas/{empresaId}/laudosScope leitura

The saved versions of the valuation, newest first. The on-screen value, which recalculates with every entry, is not exposed by the API: only what was saved has a version and can be cited.

Request
curl https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/laudos \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": [
    {
      "versao": 3,
      "rotulo": "Rodada seed",
      "status": "PUBLISHED",
      "valor": 8200000,
      "faixaBaixa": 7100000,
      "faixaAlta": 9400000,
      "moeda": "BRL",
      "anoBase": 2025,
      "dataReferencia": "2026-10-14T13:22:05.000Z",
      "versaoMotor": "1.4.0",
      "criadoEm": "2026-10-14T13:22:05.000Z",
      "publicadoEm": "2026-10-15T09:00:00.000Z"
    }
  ]
}

Read a report

GET/empresas/{empresaId}/laudos/{versao}Scope leitura

By version number, or ultimo. Includes each method (including those that did not apply, with the reason), the score, the indicators and the frozen assumptions.

Request
curl https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/laudos/ultimo \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": {
    "versao": 3,
    "rotulo": "Rodada seed",
    "status": "PUBLISHED",
    "valor": 8200000,
    "faixaBaixa": 7100000,
    "faixaAlta": 9400000,
    "moeda": "BRL",
    "anoBase": 2025,
    "dataReferencia": "2026-10-14T13:22:05.000Z",
    "versaoMotor": "1.4.0",
    "criadoEm": "2026-10-14T13:22:05.000Z",
    "publicadoEm": "2026-10-15T09:00:00.000Z",
    "metodos": [
      {
        "metodo": "DCF",
        "aplicavel": true,
        "valor": 8900000,
        "peso": 0.4,
        "motivoExclusao": null
      },
      {
        "metodo": "MULTIPLE_EBITDA",
        "aplicavel": true,
        "valor": 7600000,
        "peso": 0.35,
        "motivoExclusao": null
      },
      {
        "metodo": "BRAND",
        "aplicavel": false,
        "valor": null,
        "peso": 0,
        "motivoExclusao": "Falta: INPI"
      }
    ],
    "score": {
      "total": 71,
      "rating": "BBB",
      "cobertura": 0.86,
      "dimensoes": []
    },
    "indicadores": {},
    "premissas": {
      "versao": 1,
      "grupos": [],
      "multiplos": [],
      "regime": "SIMPLES",
      "setor": "alimentos"
    }
  }
}

List fiscal periods

GET/empresas/{empresaId}/exerciciosScope leitura

Annual and monthly fiscal periods, with status and origin.

Request
curl https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/exercicios \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": [
    {
      "id": "01929b2f-0a11-7d55-8f02-3c9e41d7a6b2",
      "tipo": "ANUAL",
      "ano": 2025,
      "mes": null,
      "status": "DRAFT",
      "moeda": "BRL",
      "origem": "API"
    }
  ]
}

Open a fiscal period

POST/empresas/{empresaId}/exerciciosScope escrita

ANUAL opens the year's fiscal period; MENSAL opens the already closed months of the year. Returns 409 if it already exists and 422 if the year has not ended.

Request
curl -X POST https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/exercicios \
  -H "Authorization: Bearer $VALUEZ_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ano": 2025,
    "granularidade": "ANUAL"
  }'
Response
{
  "dados": {
    "ano": 2025,
    "criados": 1
  }
}

Read entries

GET/empresas/{empresaId}/exercicios/{exercicioId}/lancamentosScope leitura

The fiscal period's values by account code, with each one's origin and whether it was adjusted after import.

Request
curl https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/exercicios/01929b2f-0a11-7d55-8f02-3c9e41d7a6b2/lancamentos \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": {
    "exercicio": {
      "id": "01929b2f-0a11-7d55-8f02-3c9e41d7a6b2",
      "tipo": "ANUAL",
      "ano": 2025,
      "mes": null,
      "status": "DRAFT",
      "moeda": "BRL",
      "origem": "API"
    },
    "lancamentos": [
      {
        "conta": "REVENUE_GROSS",
        "valor": 4120000,
        "origem": "AI_IMPORT",
        "confianca": 0.97,
        "ajustado": false
      },
      {
        "conta": "COGS",
        "valor": 2210000.5,
        "origem": "API",
        "confianca": null,
        "ajustado": true
      }
    ]
  }
}

Write entries

PUT/empresas/{empresaId}/exercicios/{exercicioId}/lancamentosScope escrita

Writes the accounts sent and returns what changed. See the write rules below.

Request
curl -X PUT https://app.valuez.com.br/api/v1/empresas/01929b2e-6f1d-7c3a-9a41-5e2d8c7b4a10/exercicios/01929b2f-0a11-7d55-8f02-3c9e41d7a6b2/lancamentos \
  -H "Authorization: Bearer $VALUEZ_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "lancamentos": [
      {
        "conta": "REVENUE_GROSS",
        "valor": 4120000
      },
      {
        "conta": "COGS",
        "valor": 2210000.5
      },
      {
        "conta": "OPEX_OTHER",
        "valor": null
      }
    ]
  }'
Response
{
  "dados": {
    "gravados": 2,
    "apagados": 1,
    "semMudanca": 0,
    "rejeitados": []
  }
}

Chart of accounts

GET/contasScope leitura

The account codes the write operation accepts, with name, statement and whether the account accepts negative values.

Request
curl https://app.valuez.com.br/api/v1/contas \
  -H "Authorization: Bearer $VALUEZ_TOKEN"
Response
{
  "dados": [
    {
      "codigo": "REVENUE_GROSS",
      "nome": "Receita bruta",
      "demonstrativo": "INCOME",
      "contaPai": null,
      "calculada": false,
      "essencial": false,
      "comSinal": false
    }
  ]
}
06

Write rules

Writing through the API follows the same rules as the financial statements screen:

  • Value as a JSON number, with up to two decimal places. 1234.56, never "1.234,56".
  • null removes the entry. Zero and absence are different things in a financial statement: send 0 only when the account is worth zero.
  • Only the accounts you send change. The ones you leave out stay as they are.
  • A closed fiscal period (LOCKED) rejects writes. It backs a published report.
  • The previous value is preserved and the change goes into the audit trail with origin API and the token prefix.
  • Closed years only. The platform projects the future from history, and does not accept a fiscal period for a year in progress.

Partial success. If part of the batch is rejected, the response is 200 and the rejected accounts come back in rejeitados, with the reason. If all are rejected, the response is 422 LANCAMENTOS_REJEITADOS. Always check rejeitados, not just the status.

07

Errors

Decide by the code, not the message: the message text may change, the code does not change within v1.

{
  "erro": {
    "codigo": "LIMITE_EXCEDIDO",
    "mensagem": "…"
  }
}
CodeHTTPWhen it happens
TOKEN_AUSENTE401The Authorization header is missing, or it is not in Bearer format.
TOKEN_INVALIDO401The token does not exist on this domain, or it is wrong.
TOKEN_EXPIRADO401The expiry chosen at creation has passed. Generate another one.
TOKEN_REVOGADO401Someone revoked the token in Meu perfil.
ESCOPO_INSUFICIENTE403Write operation with a read-only token.
SEM_PERMISSAO403The token owner does not have that permission on the company, or was suspended.
TENANT_SUSPENSO403The environment is suspended: reads continue, writes do not.
PLANO_SEM_API402The company is not on a paid plan, or the subscription is not up to date.
NAO_ENCONTRADO404Company, report or fiscal period does not exist, or is outside the token's reach.
CORPO_INVALIDO400Malformed JSON, missing required field, or more than 500 entries.
ANO_INVALIDO422The year given is not a valid year.
NAO_ENCERRADO422The year has not ended yet.
JA_EXISTE409The fiscal period (or all closed months of the year) already exists.
LANCAMENTOS_REJEITADOS422No entry in the batch was accepted. See dados.rejeitados.
LIMITE_EXCEDIDO429More than 120 requests in the minute. Respect Retry-After.
FALHA_INTERNA500Our error. Try again; if it persists, contact support.
08

Versioning

  • Within v1, no field is removed or renamed and no error code changes.
  • New fields may appear in responses. Ignore the ones you don't recognize.
  • A breaking change becomes /api/v2, announced in advance, with v1 kept running in parallel.

Questions, or need an endpoint that isn't here? Talk to us.

Ready to integrate

Generate the token and make the first call

The token lives in Meu perfil, inside the platform. In under a minute you list your companies through the API.