---
title: "Get list items for all accounts"
method: GET
path: "/accounts/list"
tags: ["Accounts (Companies)"]
---

# Get list items for all accounts

`GET /accounts/list`

Get a list of all accounts and associated data in your Nutshell Instance, in a list item format. List items have additional fields attached to them for filtering purposes.

## Query parameters

- `filter` object — Filter the returned accounts based on various criteria. Use /rest/accounts/list/fields to get a full list of valid filter keys.
- `q` string
- `sort` string[]

## Response `200`

accounts list

- object
  - `meta` object — Information about the Nutshell instance making the request
    - `count` integer — The number of returned accounts
    - `total` integer — The total number of accounts in your Nutshell instance
    - `facets` object — Contains an AccountType object, which lists the id and count for each account type in your instance
      - `AccountType` object
        - `n-accountTypes` integer — The number of accounts with the account type id n-accountTypes, where n is an integer
    - `instanceId` string — The Nutshell instance ID
    - `siteId` string — Site ID for WebFX customers
  - `listItems` object[]
    - `htmlUrl` string — The link to the entity within the app.
    - `htmlUrlPath` string — The path to the entity within the app.
    - `avatarUrl` string — The URL of the entity's avatar image.
    - `initials` string — The initials of the entity, used as a fallback for the avatar image.
    - `id` string — The API ID of this entity, formatted {integer}-{entityType}
    - `primaryName` string
    - `primaryInfo` string
    - `relatedName` string
    - `relatedInfo` string
    - `relatedType` string
    - `relatedUrl` string
    - `relatedUrlPath` string
    - `primaryContact` string
    - `primaryAccount` string
    - `latlon` string
    - `mapUrl` string
    - `isDeleted` boolean
    - `fields` object[] — Various additional fields for the list item. View the example response for more details.
    - `description` string

---

[API](https://skmtc.dev/nutshell/apis/nutshell-api.md) · [All operations](https://skmtc.dev/nutshell/apis/nutshell-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nutshell/nutshell-api/revisions/14f59cf6a09a/schema)
