Corgi BankDocumentation
OpenAPI

Create a bank custody account

POST/ledger/securities/custody-accounts

Fresh verified non-API-key staff with ledger:securities:write required. Requires a signed exact program/bank/master/custodian relationship, actual bank beneficial ownership, original empty inventory, exclusive core instructions and no third-party lien. Disabled evidence can be retained, but cannot authorize new trading. All mutations require verified authority even in local mode; customers and API keys are refused. Evidence JSON is strict and bounded at 5 MiB; complete responses are bounded at 16 MiB and never silently truncated.

Headers

Idempotency-KeystringRequired

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

bank_ownedbooleanRequired
custodian_referencestringRequired
enabledbooleanRequired
exclusive_core_instructionsbooleanRequired
external_account_referencestringRequired
key_idstringRequired
legal_entitystringRequired
master_cash_ledger_account_idstringRequired

Example lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm

no_third_party_lienbooleanRequired
observed_atstring · date-timeRequired
onboardingobjectRequired
3 child attributes
datastring · byteRequired
formatstringRequired
sha256stringRequired
opening_inventory_emptybooleanRequired
ownershipobjectRequired
2 child attributes
referencestringRequired
sha256stringRequired
program_idstringRequired
program_sha256stringRequired
signaturestringRequired
valid_untilstring · date-timeRequired
versionstringRequired

Returns

200 OK

The Bank Custody Account object.

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close