List Accounts
/v1/accountsReturns a cursor-paginated list of accounts for the active workspace. Read only, no side effects. Results are scoped by workspace via row-level security; for example Foldspace AI's primary Mercury checking account. Attributes mirror the records field set for this root. ## Filtering & sorting Filter via `POST /v1/records/query` (root `accounts`) or the `filters` model; operators are gated by each field's data type. See [Filtering & sorting](../filtering-and-sorting). **Filterable fields** | Field | Type | Allowed operators | |---|---|---| | `account_external_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `account_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `account_name` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `account_number` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `bic` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_account_balances_list` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_account_summary` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_latest_balance_currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_payment_means_list` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_routed_to` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_sourced_from` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `created_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `deleted_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `digital_wallet_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `digital_wallet_provider` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `digital_wallet_type` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `iban` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `ownership` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `pk` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `routing_number` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `sort_code` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `subtype` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `type` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `updated_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | **Sortable fields:** `account_external_id`, `account_id`, `account_name`, `account_number`, `bic`, `composite_account_balances_list`, `composite_account_summary`, `composite_latest_balance_currency`, `composite_payment_means_list`, `composite_routed_to`, `composite_sourced_from`, `created_at`, `currency`, `deleted_at`, `digital_wallet_id`, `digital_wallet_provider`, `digital_wallet_type`, `iban`, `ownership`, `pk`, `routing_number`, `sort_code`, `subtype`, `type`, `updated_at` (via `orderBy` / `sort`, `asc`|`desc`).
Requires a bearer token: Authorization: Bearer <token>.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| cursor | string | No | Opaque pagination cursor returned as links.next on the previous page. Omit to fetch the first page.e.g. eyJwayI6MTI4N30 |
| limit | integer | No | Maximum number of records to return per page (1 to 200, defaults to 50).e.g. 50 |
| orderBy | string | No | Field to sort by, using the records dot path or column name (e.g. created_at).e.g. created_at |
| direction | string | No | Sort direction for orderBy. Defaults to desc.e.g. desc |
| workspaceId | string <uuid> | No | Explicit workspace scope. The authenticated user must hold an active membership in this workspace. Defaults to the session workspace when omitted.e.g. a1b2c3d4-0000-4000-8000-000000000001 |
Request
curl -X GET https://api.wellapp.ai/v1/accounts \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
200 — A page of accounts.
{
"data": [
{
"type": "account",
"id": "b2c3d4e5-0000-4000-8000-0000000000a2",
"attributes": {
"account_id": "b2c3d4e5-0000-4000-8000-0000000000a2",
"account_external_id": "acct_mercury_9921",
"account_name": "Mercury Checking",
"account_number": "****4471",
"iban": null,
"bic": null,
"routing_number": "084106768",
"sort_code": null,
"currency": "USD",
"type": "deposit",
"subtype": "checking",
"ownership": "own",
"created_at": "2026-01-12T18:02:00Z",
"updated_at": "2026-04-27T09:15:00Z",
"deleted_at": null
},
"relationships": {
"company": {
"data": {
"type": "Company",
"id": "00000000-0000-4000-8000-000000000001"
}
},
"people": {
"data": {
"type": "People",
"id": "00000000-0000-4000-8000-000000000001"
}
},
"bank_company": {
"data": {
"type": "Company",
"id": "00000000-0000-4000-8000-000000000001"
}
}
}
}
],
"meta": {
"total": 1,
"count": 1
},
"links": {
"next": null
}
}400 — Bad request
{
"code": "BAD_REQUEST",
"status": 400,
"title": "Bad Request",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}401 — Unauthorized
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}Filtering & sorting on related objects
This resource's related objects (the ones you can include) and how to filter or sort on each:
| Relationship | Cardinality | Filter on a field | Sort by a field |
|---|---|---|---|
workspace | to-one (Workspace) | { "workspace": { "field_name": { "_eq": … } } } | "field": "workspace.field_name" ✅ |
company | to-one (Company) | { "company": { "field_name": { "_eq": … } } } | "field": "company.field_name" ✅ |
people | to-one (People) | { "people": { "field_name": { "_eq": … } } } | "field": "people.field_name" ✅ |
bank_company | to-one (Company) | { "bank_company": { "field_name": { "_eq": … } } } | "field": "bank_company.field_name" ✅ |
source_workspace_connector | to-one (WorkspaceConnector) | { "source_workspace_connector": { "field_name": { "_eq": … } } } | "field": "source_workspace_connector.field_name" ✅ |
workspace_connector | to-one (WorkspaceConnector) | { "workspace_connector": { "field_name": { "_eq": … } } } | "field": "workspace_connector.field_name" ✅ |
account_workspace_connectors | to-many (AccountWorkspaceConnector) | { "account_workspace_connectors": { "_some": { "field_name": { "_eq": … } } } } | aggregate proxy only ⚠️ |
Replace field_name with any field of the related object. See its object-reference page for the full field list.
Filter by a to-one relation (and sort by it):
{
"root": "accounts",
"whereClause": { "workspace": { "field_name": { "_ilike": "%acme%" } } },
"orderBy": { "field": "workspace.field_name", "direction": "asc" }
}Filter by a to-many relation (quantified — bare nesting is invalid):
{
"root": "accounts",
"whereClause": { "account_workspace_connectors": { "_some": { "field_name": { "_gt": 0 } } } }
}