Skip to main content
POST
financial_statement_history

Authorizations

apikey
string
header
required

The publishable key (sb_publishable_…), on every request. It is NOT a JWT — sending it as Authorization: Bearer is rejected as an invalid JWT. It identifies the project, not you, and maps to the Postgres anon role.

Body

application/json
p_id
string | null
required
p_statement
string | null
required
p_from
string<date> | null

Defaults to (CURRENT_DATE - 1825).

p_to
string<date> | null

Defaults to CURRENT_DATE.

p_scope
string | null
default:con

Defaults to 'con'::text.

Examples:

"con"

"ind"

p_doc_type
string | null

Defaults to NULL::text.

Examples:

"itr"

"dfp"

Response

The result set, oldest first. An unknown id is an empty array, not a 404 and never a guessed value.

id
string | null
id_type
string | null
cnpj
string | null
company
string | null
ticker
string | null
doc_type
string | null
statement
string | null
scope
string | null
ref_date
string<date> | null
period_start
string<date> | null
period_end
string<date> | null
period_months
integer<int32> | null
account_code
string | null
account_name
string | null
value
number | null
version
integer<int32> | null
source
string | null
filed_currency
string | null
filed_scale
string | null
filing_metadata_found
boolean | null
filing_document_id
string | null
filing_received_date
string<date> | null