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

# User's company and its authorized subcontractors.

`GET /api/v4/companies/self/authorized_subcontractors`

## Request

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

Returns all the authorized subcontractors of a given company, 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.
  - `authorized_subcontractors` object[]: A list of subcontractors 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[]
    - `uri` string: URI to the show() method for the company. System-generated
    - `status` string: whether the subcontractor is enabled or disabled

## 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)
