---
title: "Get stores"
method: GET
path: "/api/vlm/account/stores"
tags: ["Stores"]
---

# Get stores

`GET /api/vlm/account/stores`

Retrieves the stores of the account and their respective hosts. 

## Permissions

Any user or [API key](https://developers.vtex.com/docs/guides/api-authentication-using-api-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:

| **Product** | **Category** | **Resource** |
| --------------- | ----------------- | ----------------- |
| License Manager | Services access control | **Get account by identifier** |

You can [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) with that resource or use one of the following [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy):

| **Role** | **Resource** | 
| --------------- | ----------------- | 
| Finance - Full access | Get account by identifier |

>❗ Assigning a [predefined role](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) to users or application keys usually grants permission to multiple [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3). If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see [Best practices for using application keys](https://help.vtex.com/en/tutorial/best-practices-api-keys--7b6nD1VMHa49aI5brlOvJm). 

To learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication).

## Response `200`

Success

- StoreItems[] — Array of store objects.
  - `id` number — ID of the store.
  - `name` string — Name of the store.
  - `hosts` string[] — Array of hosts corresponding to the store.

## Changes

- **2023-10-11** `86441c3dfd15` — 2 info
  - api tag `Stores` added
  - api tag `Store` removed
- **2023-10-11** `381c1c4a4ead` — 2 info
  - api tag `Store` added
  - api tag `Stores` removed
- **2023-10-05** `32ac13ae3854` — 2 info
  - api tag `Stores` added
  - api tag `Store` removed
- **2022-01-28** `ca8bd421f133` — 2 warning
  - deleted the `path` request parameter `accountName`
  - deleted the `path` request parameter `environment`
- **2021-11-09** `7a2ee1e98a24` — 2 info
  - api operation id `GetbyAccount` removed and replaced with `GetByAccount`
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/vtex/apis/license-manager-api/changes/api/vlm/account/stores/get.md)

---

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