Custodians
Custodians are the banks and brokers on the other end of every data feed. The v1 catalogue endpoint exists so integrations can render a custodian picker or resolve the custodian a feed belongs to without hard-coding identifiers.
Data model
idstringStable identifier for the custodian. A UUID — treat it as opaque.
identifierstring or nullMachine-readable slug, e.g.
own-investments-dk. Stable across environments — safer thanidfor configuration files.namestringDisplay name shown in the product.
group_namestring or nullThe banking group the custodian belongs to, when it is part of one.
base_currency_codestring or nullISO 4217 code of the custodian's base currency.
List custodians
Returns the catalogue in name order, one page at a time: the banks Aleta supports, plus every bank the tenant holds a custody account at (whoever can see that account), so a custody account always names a listed bank and every user of the tenant sees the same catalogue. Customer-specific entries, placeholders and duplicates from the legacy platform are not listed. GET /v1/custodians/{custodian_id} answers a listed bank, else 404. Pass limit (default 100, at most 1000) and the next_cursor of the previous page as cursor; next_cursor is null on the last page. Fetch once, cache, and match on identifier client-side. An unknown query parameter is a 400.
Optional attributes
limitintegerPage size. Default 100; a value below 1 or above 1000 is clamped to that range.
cursorstringThe
next_cursorof the previous page.
curl https://api.aleta.ai/v1/custodians \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "019dff7d-5a85-741e-8437-22e1d5f7c685",
"identifier": "own-investments-dk",
"name": "Own Investments",
"group_name": null,
"base_currency_code": "DKK"
}
],
"next_cursor": null,
"limit": 100
}
Get a custodian
Returns one listed bank, in the shape of the list's entries. A bank that is not listed, an unknown id and an id that is not a UUID are 404.
curl https://api.aleta.ai/v1/custodians/019dff7d-5a85-741e-8437-22e1d5f7c685 \
-H "Authorization: Bearer {access_token}"
{
"id": "019dff7d-5a85-741e-8437-22e1d5f7c685",
"identifier": "own-investments-dk",
"name": "Own Investments",
"group_name": null,
"base_currency_code": "DKK"
}
Related
- Cash accounts — where custodian feeds deliver data.
- Custody accounts — the custody locations feeds report on.