Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Alejandrin08/Hackathon-SPEI/llms.txt
Use this file to discover all available pages before exploring further.
List accounts
GET /api/ledger/accounts
Returns all bank accounts belonging to the authenticated user.
Response
Unique account identifier (UUID).
The account number (CLABE or other identifier).
Type of account, e.g.,
"DEFAULT", "checking", "savings".Current account balance.
ISO 4217 currency code, e.g.,
"MXN".Response
Create account
POST /api/ledger/accounts
Creates a new bank account for the authenticated user. Returns the created account object with a 201 Created status.
Request body
Account number for the new account. Must be between 10 and 50 characters.
Type of account to create, e.g.,
"DEFAULT", "checking", "savings". Must be between 3 and 50 characters.Response
Returns the newly created account object. See the List accounts response fields for the full schema.Error responses
| Status | Description |
|---|---|
400 | Validation error — missing or invalid fields. |
401 | Invalid or missing bearer token. |
Response (201 Created)
