---
title: "Get energy accounts"
method: GET
path: "/accounts"
tags: ["Accounts"]
---

# Get energy accounts

`GET /accounts`

Get a list of energy account ids that are tied to a given user.

Note that this endpoint was previously named '/users/{user_id}/accounts', which is still live (user_id is the id you submitted for the user that you submitted when you initialized a Connect Token).

## Headers

- `Authorization` string, required
- `Pelm-Client-Id` string, required
- `Pelm-Secret` string, required

## Response `200`

Successful operation

- Account[]
  - `id` string
  - `account_number` string
  - `address` string
  - `available_meter_types` MeterType[] — The types of meters available for this account. This defines what kind of intervals you can query for this account via `/intervals`.
  - `usage_unit` string — Unit for electricity usage. https://pelm.readme.io/reference/unit-codes
  - `gas_usage_unit` string — Unit for gas usage. Omitted if account does not have a gas meter. https://pelm.readme.io/reference/unit-codes
  - `ghg_emissions_unit` string — Unit for greenhouse gas emissions. https://pelm.readme.io/reference/unit-codes

## Other responses

- `400` — Client error
- `401` — Unauthorized
- `402` — Quota reached
- `403` — Permission denied
- `500` — Server error

---

[API](https://skmtc.net/pelm/apis/pelm-api.md) · [All operations](https://skmtc.net/pelm/apis/pelm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pelm/pelm-api/revisions/99451cd0e777/schema)
