> For the complete documentation index, see [llms.txt](https://docs.greenearth.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.greenearth.ai/api-endpoints/list-company.md). Agents can also search and read this documentation through its [MCP server](https://docs.greenearth.ai/~gitbook/mcp).

# List company

{% hint style="info" %}
[api-docs](https://api.greenearth.ai/api/api-docs) Redoc document (api spec)
{% endhint %}

{% openapi src="/files/Lii1IpL0WvkEW9nWVbfo" path="/api/company/list" method="get" %}
[openApi.json](https://1469186640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCU6kpEkHIZtR3Dw04saq%2Fuploads%2FuTfaJv07UDHnavZwOPFM%2FopenApi.json?alt=media\&token=20a01eda-5c56-4e35-a420-22c858ed9741)
{% endopenapi %}

This API endpoint "GET /api/company/list" allows you to retrieve a list of companies. To access this endpoint, you will need an API key with either "partner" or "admin" level of authorization.

You can pass optional parameters of "company\_id" and "company\_name" in the query string to retrieve specific company information.

The response of this API endpoint returns a JSON object containing either an error message or the data of the companies requested. The data includes an array of company objects with properties such as "company\_constants", "\_id", "company\_name", "createdAt", "updatedAt". The metadata object within the data object provides information about the page number, total number of items, and page size.

A successful response will have a HTTP status code of 200.
