Skip to main content
POST
focus_expectations

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_endpoint
enum<string> | null
required
Available options:
ExpectativasMercadoAnuais,
ExpectativaMercadoMensais,
ExpectativasMercadoSelic,
ExpectativasMercadoInflacao12Meses
p_horizon
string | null
required
Examples:

"2027"

"09/2026"

p_indicator
string | null

Defaults to NULL::text.

p_from
string<date> | null

Defaults to (CURRENT_DATE - 1825).

p_to
string<date> | null

Defaults to CURRENT_DATE.

Response

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

endpoint_name
string | null
indicator
string | null
survey_date
string<date> | null
horizon
string | null
median
number | null
mean_value
number | null
std_dev
number | null
sample_basis
string | null
smoothing
string | null
source
string | null