The Search module provides search with three different scopes based on the caller’s role: member-scope (data belonging to the user themselves), organization-scope (all data in the user’s organization), and global (across the entire application — MORIA superadmin only). All endpoints require Bearer JWT and use the same query string (SearchQueryDto).
Property
Value
Base URL
{HOST}/v1
Auth
Bearer JWT (header Authorization) or access_token cookie
Pick an endpoint based on the role of the logged-in user. INDIVIDUAL can only call member-scope. ORGANIZATION admin can call member-scope (their own data) and organization-scope (across the org’s members). MORIA superadmin has access to the global endpoint for cross-tenant search.
Method
Path
Auth
Summary
GET
/v1/search/member-scope
bearer
Search within the logged-in user’s data
GET
/v1/search/organization-scope
bearer
Search within the organization scope (organization admin)
GET
/v1/search/global
bearer
Global cross-application search (MORIA superadmin)
Search within the logged-in user’s scope: personal data, accounts, and personal items. Endpoint for both INDIVIDUAL and ORGANIZATION users — both will see only their own items.
{ "...": "shape per item depends on the matched entity type" }
]
}
}
The results field is a free-form array (any[]) — the service returns a mix of objects (user, account, transaction, etc.) each with a type/kind indicator. FE must discriminate based on that field.