---
title: "Get Accounts"
method: GET
path: "/accounts"
---

# Get Accounts

`GET /accounts`

## Query parameters

- `id` string — GoCardLess reference id
- `provider` 'teller' | 'plaid' | 'gocardless', required
- `accessToken` string — Teller or Plaid access token
- `institutionId` string — Plaid institution id

## Response `200`

Retrieve accounts

- AccountsSchema
  - `data` AccountSchema[], required
    - `id` string, required
    - `name` string, required
    - `type` 'depository' | 'credit' | 'other_asset' | 'loan' | 'other_liability', required
    - `balance` object, required
      - `amount` number, required
      - `currency` string, required
    - `currency` string, required
    - `institution` InstitutionSchema, required
      - `id` string, required
      - `name` string, required
      - `logo` string, nullable, required
      - `available_history` number, nullable
      - `provider` 'teller' | 'plaid' | 'gocardless', required
    - `enrollment_id` string, nullable, required

## Other responses

- `400` — Returns an error

## Changes

- **2024-07-23** `1515e7c2644a` — 1 breaking, 1 warning
  - the `code` response's property type/format changed from `number`/`` to `string`/`` for status `400`
  - removed the optional property `details` from the response with the `400` status
- **2024-07-23** `3ec5d8234ad7` — 1 breaking, 1 warning, 1 info
  - removed the required property `data/items/provider` from the response with the `200` status
  - deleted the `query` request parameter `countryCode`
  - added the required property `data/items/balance` to the response with the `200` status
- **2024-07-23** `85b4f43c2bb3` — 2 info
  - added the optional property `details` to the response with the `400` status
  - added the required property `requestId` to the response with the `400` status
- **2024-07-12** `47bb326d0f17` — 2 info
  - added the optional property `data/items/institution/available_history` to the response with the `200` status
  - added the required property `data/items/institution/provider` to the response with the `200` status
- **2024-07-05** `b620765f2663` — 1 breaking, 1 info
  - the response property `data/items/institution` became nullable for the status `200`
  - added the required property `data/items/type` to the response with the `200` status

[Change history](https://skmtc.dev/midday-ai/apis/midday-engine-api/changes/accounts/get.md)

---

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