---
title: "API endpoint to get battery charge/discharge setting."
method: GET
path: "/api/v4/activations/{activation_id}/battery_mode"
tags: ["Activations"]
---

# API endpoint to get battery charge/discharge setting.

`GET /api/v4/activations/{activation_id}/battery_mode`

## Request

- Base URL: `https://api-qa2.enphaseenergy.com`
- URL: `https://api-qa2.enphaseenergy.com/api/v4/activations/{activation_id}/battery_mode`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enphase/apis/commissioning-api/docs/api/v4/activations/:activation_id/battery_mode/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint can be used to get the CFG and DTG settings of the site.

## Path parameters

- `activation_id` integer, required

## Response `200`

OK

- object
  - `CFG_allowed` boolean
  - `DTG_allowed` boolean

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `405`: Method Not Allowed
- `422`: Unprocessable entity. The body contains error information in a hash of errorMessages and an optional errorCode
- `429`: Too Many Requests
- `501`: Not Implemented

---

[API](https://skmtc.dev/enphase/apis/commissioning-api.md) - [All operations](https://skmtc.dev/enphase/apis/commissioning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/enphase/apis/commissioning-api/revisions/73a4001046e2?raw)
