Skip to main content
POST
treasury_direct

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_title
string | null

Defaults to NULL::text.

p_maturity
string<date> | null

Defaults to NULL::date.

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.

base_date
string<date> | null
title
string | null
maturity
string<date> | null
buy_rate_pct
number | null
sell_rate_pct
number | null
buy_pu
number | null
sell_pu
number | null
base_pu
number | null
source
string | null
licence
string | null