π GET /find_account_by_name
Searches for accounts in the userβs account tree that match a given name. Useful for quickly locating accounts without needing their UUID.
π Summary
- Method:
GET
- URL:
/find_account_by_name
- Auth: Required
- Tag:
accounts
π Headers
Authorization: Bearer <your-token>
Content-Type: application/json
π€ Request Parameters
Name | Type | Required | Description |
---|---|---|---|
name |
string | β | Name of the account to look up |
π₯ Example Request
GET /find_account_by_name?name=Rent
β Success Response
{
"success": true,
"status": 200,
"search_name": "Rent",
"total_matches": 2,
"matches": [
{
"uuid": "acc-234",
"name": "Rent",
"path": "Main > Needs > Rent"
},
{
"uuid": "acc-987",
"name": "Rent",
"path": "Main > Rentals > Rent"
}
],
"start_time": "2025-07-10T11:20:10.050Z",
"end_time": "2025-07-10T11:20:10.061Z",
"execution_time": 0.011
}
β Failure Response Examples
Status | Reason |
---|---|
403 |
Unauthorized or tree not found |
500 |
Missing argument name or server error |
π§ Notes
- Matching is case-sensitive unless your backend handles normalization.
- Returns all matches if the name appears more than once.
- Use uuid from results for further operations (e.g., get balance, transactions).
π Sponsors
Support my work through GitHub Sponsors!