Skip to main content
GET
Get Households

Authorizations

x-api-key
string
header
required

API Key authentication. Enter your API key in the format: YOUR_API_KEY

Query Parameters

limit
integer
default:1000

The maximum number of items to return per page of results.

This should be used together with the next_token parameter, or the offset parameter where the endpoint offers it, to paginate through results.

Read the pagination parameter documentation for more details.

Required range: 1 <= x <= 1000
next_token
string | null

The next_token is a token used to retrieve the next page of results when there are more results than can fit in a single page(=API response).

By default, the API will return a next_token of the first page if no token was given as a parameter.

If the token is null you have reached the end of the results.

This should be used together with the limit parameter to paginate through results.

To get all results of your call, you can keep calling the same API call with the previously returned next_token until it returns null.

Pass the next_token back unchanged. A token that was altered or not issued by the API returns 400.

offset
integer | null

The number of items to skip before the first item of the page. Defaults to 0.

Use it together with the limit parameter to fetch a specific page, for example limit=100&offset=200 returns items 201 to 300.

Use either offset or next_token, not both. Sending both returns 400.

Required range: x >= 0
household_id
string | null

The ID of the household to filter on. If not provided, all households are returned.

user_id
string | null

Your own ID of the user to filter on: the ID you use internally for this user, whether you are an energy supplier, an OEM or another partner. If not provided, all users are returned.

Response

Successful response

data
Household · object[] | null

List of households

meta
HouseholdsMeta · object | null

Response metadata