---
updatedAt: 2026-09-16T09:37:59.000Z
agentTools:
  projectIndex: https://developer.leap.energy/llms.txt
---

# Get idle periods for all meters

Returns the full list of idle periods for all the meters of the user's account.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "apiteam@leap.energy"
    },
    "description": "Manage the enrollment of your meters.\nYou can request to temporarily not participate in the market by setting an Idle period.\nYou can request to permanently withdraw from the market by requesting a Disenrollment.\nDon't forget to select the right server in the dropdown on the left, and to authorize with your JWT token on the right (don't add Bearer in front, just the token).",
    "title": "Manage meters",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.staging.leap.energy"
    },
    {
      "url": "https://api.leap.energy"
    }
  ],
  "tags": [
    {
      "description": "Manage the idle periods of your meters. \nA meter does not participate in the market during an idle period.\nSome endpoints accept `text/csv` as content type. For those endpoints, please be aware of the following constraints:\n- Accepted column delimiters are: `,`, `;`, `|`.\n- Accepted line delimiters are: `\\r`, `\\r\\n`, `\\n`.\n- Double quotes can be used as text qualifier. The text can also be not quoted if it does not contain special characters.",
      "name": "idle_periods"
    }
  ],
  "paths": {
    "/v1.1/enrollment/meters/idle_periods": {
      "get": {
        "description": "Returns the full list of idle periods for all the meters of the user's account.",
        "operationId": "getV1.1EnrollmentMetersIdle_periods",
        "parameters": [
          {
            "deprecated": true,
            "description": "Deprecated. The account of the logged in user will be used.",
            "explode": true,
            "in": "query",
            "name": "account_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMultipleMetersIdlePeriodsResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "Meter id is not a UUID": {
                    "value": {
                      "title": "Meter id is not a UUID",
                      "status": 400,
                      "details": {
                        "meter_id": "abcdef"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseBadRequest"
                }
              }
            },
            "description": "Account id is not a valid UUID."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "Unauthorized": {
                    "value": {
                      "title": "Unauthorized",
                      "status": 401,
                      "details": {}
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseUnauthorized"
                }
              }
            },
            "description": "You are not authorized to perform this operation."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "Forbidden": {
                    "value": {
                      "title": "You do not have the necessary permissions for this operation",
                      "status": 403,
                      "details": {}
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseForbidden"
                }
              }
            },
            "description": "You do not have the necessary permissions for this operation."
          }
        },
        "security": [
          {
            "http": []
          }
        ],
        "summary": "Get idle periods for all meters",
        "tags": [
          "idle_periods"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "IdlePeriod": {
        "description": "The idle periods of the meter.",
        "example": {
          "start_date": "2000-01-23",
          "end_date": "2000-01-23",
          "reason": "reason"
        },
        "properties": {
          "start_date": {
            "description": "The start date of the idle period. Date is _inclusive_. Date format: `yyyy-MM-dd`.",
            "format": "date",
            "type": "string"
          },
          "end_date": {
            "description": "The end date of the idle period. Date is _exclusive_. Date format: `yyyy-MM-dd`.",
            "format": "date",
            "type": "string"
          },
          "reason": {
            "description": "A reason specifying why the meter is idle in the given period..",
            "type": "string"
          }
        },
        "required": [
          "reason",
          "start_date"
        ],
        "type": "object"
      },
      "ErrorResponseBadRequest": {
        "type": "object"
      },
      "ErrorResponseUnauthorized": {
        "type": "object"
      },
      "ErrorResponseForbidden": {
        "type": "object"
      },
      "GetMultipleMetersIdlePeriodsResponse": {
        "example": {
          "meter_idle_periods": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "idle_periods": [
                {
                  "start_date": "2000-01-23",
                  "end_date": "2000-01-23",
                  "reason": "reason"
                },
                {
                  "start_date": "2000-01-23",
                  "end_date": "2000-01-23",
                  "reason": "reason"
                }
              ]
            },
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "idle_periods": [
                {
                  "start_date": "2000-01-23",
                  "end_date": "2000-01-23",
                  "reason": "reason"
                },
                {
                  "start_date": "2000-01-23",
                  "end_date": "2000-01-23",
                  "reason": "reason"
                }
              ]
            }
          ]
        },
        "properties": {
          "meter_idle_periods": {
            "description": "The idle periods of the account's meters.",
            "items": {
              "$ref": "#/components/schemas/MeterIdlePeriods"
            },
            "type": "array"
          }
        },
        "required": [
          "meter_idle_periods"
        ],
        "type": "object"
      },
      "MeterIdlePeriods": {
        "description": "The idle periods of the account's meters.",
        "example": {
          "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "idle_periods": [
            {
              "start_date": "2000-01-23",
              "end_date": "2000-01-23",
              "reason": "reason"
            },
            {
              "start_date": "2000-01-23",
              "end_date": "2000-01-23",
              "reason": "reason"
            }
          ]
        },
        "properties": {
          "meter_id": {
            "description": "The uuid of the meter.",
            "format": "uuid",
            "type": "string"
          },
          "idle_periods": {
            "description": "The idle periods of the meter.",
            "items": {
              "$ref": "#/components/schemas/IdlePeriod"
            },
            "type": "array"
          }
        },
        "required": [
          "idle_periods",
          "meter_id"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "http": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```