---
title: "User's company and its branches"
method: GET
path: "/api/v4/companies/self/branches"
tags: ["Companies"]
---

# User's company and its branches

`GET /api/v4/companies/self/branches`

## Request

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

Returns information about the API user's company and its branches, if any

## Response `200`

OK

- object
  - `company_id` integer: The Enlighten ID of the API user's company.
  - `company_name` string: The name of the API user's company.
  - `branches` object[]: A list of branches belonging to the API user's company. May be empty.
    - `company_id` integer: The Enlighten ID of the company.
    - `company_name` string: The name of the company.
    - `location` string: Company location
    - `roles` string[]: What type of company this is in Enphase. Possible values are ['installer']. For installer company roles will be ['installer']. For other role roles will be empty.
    - `uri` string: URI to the show() method for the company. System-generated

## Other responses

- `401`: Unauthorized
- `405`: Method Not Allowed
- `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)
