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 beneficiaries
GET /api/ledger/beneficiaries
Returns all saved beneficiaries for the authenticated user.
Response
Unique beneficiary identifier (UUID).
Beneficiary’s full name.
Friendly name for quick identification.
Beneficiary’s account number (CLABE or other identifier).
Name of the beneficiary’s bank.
Whether the beneficiary is marked as a favorite.
Response
Add beneficiary
POST /api/ledger/beneficiaries
Saves a new trusted recipient for the authenticated user.
Request body
Beneficiary’s full name.
Beneficiary’s account number (CLABE or other identifier).
Name of the beneficiary’s bank.
Optional friendly name for the beneficiary.
Error responses
| Status | Description |
|---|---|
400 | Validation error — name, accountNumber, and bankName are required. |
401 | Invalid or missing bearer token. |
Response (201 Created)
Remove beneficiary
DELETE /api/ledger/beneficiaries/{id}
Permanently removes a saved beneficiary. Only the owning user can delete their own beneficiaries.
Path parameters
UUID of the beneficiary to delete.
Response
Returns204 No Content on success with an empty body.
Error responses
| Status | Description |
|---|---|
401 | Invalid or missing bearer token. |
404 | Beneficiary not found, or it belongs to a different user. |
