List the Accounts accessible to the credential for the selected legal entity. Each Account is a financial product that contains one or more virtual accounts. Use account retrieval for its balance breakdown.

get/v2/accounts

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/accounts
  • Auth
    API key in header X-API-Key

Query parameters

cursorstring

The opaque metadata.nextCursor value from the previous page. It carries that page's filters, page size and ordering, so pass it on its own; see Pagination.

limitinteger

Number of items per page, from 1 to 100. The page size is carried inside metadata.nextCursor, so later pages keep the same size unless limit is passed again to change it.

sort'createdAt'

Field to order the page by. createdAt is descending unless sortDirection is passed. See Sorting.

sortDirection'asc' | 'desc'

Direction of the ordering selected by sort. When omitted, each sort value uses its own default; see Sorting.

includeClosedboolean

Include closed Accounts. Defaults to false.

Response

A page of Accounts.

Example response

{
  "items": [
    {
      "id": "sa_group_primary123",
      "name": "Slash Platinum",
      "currency": "USD"
    }
  ]
}

Changes