> For the complete documentation index, see [llms.txt](https://help.recart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.recart.com/developers/public-api/account/retrieve-the-accounts-of-the-api-key.md).

# Retrieve the accounts of the API key

List the accounts the API key gives access to. An API key belongs to one account, so the list carries a single entry: the account's id, name, domain, currency and time zone. Use the account's `id` wherever an integration needs to identify the account.

```json
{"openapi":"3.1.0","info":{"title":"Recart API","version":"2023-12"},"tags":[{"name":"Account","description":"Accounts"}],"servers":[{"url":"https://api.recart.com/app-integrations/2023-12","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Recart-API-Key","description":"It can be obtained in Recart account after contacting Support"}},"schemas":{"Account":{"type":["object"],"required":["type","attributes"],"properties":{"type":{"type":"string","enum":["accounts"]},"attributes":{"type":"object","required":["id","name","domain","currency"],"properties":{"id":{"type":"string","description":"ID of the account"},"name":{"type":"string","description":"Name of the account as shown in the Recart dashboard"},"domain":{"type":"string","description":"Storefront domain of the account"},"currency":{"type":"string","description":"Currency of the account as an ISO 4217 code"},"timezone":{"type":["string","null"],"description":"Time zone of the account as an IANA time zone name, null when the account has not set one"}}}}},"HttpErrorBody":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["id","code","title","detail"],"properties":{"id":{"type":"string"},"code":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"}}}}}}},"responses":{"HttpError":{"description":"HTTP Error response","content":{"application/vnd.api+json":{"schema":{"$ref":"#/components/schemas/HttpErrorBody"}}}}}},"paths":{"/accounts":{"get":{"summary":"Retrieve the accounts of the API key","tags":["Account"],"operationId":"listAccounts","description":"List the accounts the API key gives access to. An API key belongs to one account,\nso the list carries a single entry: the account's id, name, domain, currency and time zone.\nUse the account's `id` wherever an integration needs to identify the account.\n","responses":{"200":{"description":"Ok","content":{"application/vnd.api+json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}}}},"4XX":{"$ref":"#/components/responses/HttpError"},"5XX":{"$ref":"#/components/responses/HttpError"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.recart.com/developers/public-api/account/retrieve-the-accounts-of-the-api-key.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
