---
title: "List Accounts"
method: GET
path: "/setup/account"
tags: ["Accounts"]
---

# List Accounts

`GET /setup/account`

Get a list of Spot accounts in your organization.  When used without any parameters, the provided token must have Organization Admin permissions and the output will contain all the Organization's accounts. Note In case you want to list all the accounts associated with Organization you can use the below request URL without the cloudAccountId parameter, https://api.spotinst.io/setup/account

## Query parameters

- `cloudAccountId` string — Will list only the Spot accounts connected to the specified account ID.

## Response `200`

Get Accounts Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code
    - `kind` string — The data type of each item in the response
    - `items` union[] — Array of data objects
      - union
        - object
          - `accountId` string — Account ID
          - `organizationId` integer — Organization ID
          - `name` string — Name
          - `providerExternalId` string — Provider external ID
        - object
          - `accountId` string — Account ID
          - `organizationId` integer — Organization ID
          - `name` string — Name
          - `providerExternalId` string — Provider external ID
    - `count` integer — Size of the data object array

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
