Skip to main content
POST
ptax

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_currency
string | null
required
p_from
string<date> | null

Defaults to NULL::date.

p_to
string<date> | null

Defaults to NULL::date.

Response

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

reference_date
string<date> | null
currency
string | null
buy_rate
number | null
sell_rate
number | null
unit
string | null
source
string | null