> 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/create-company-admin.md).

# Create company (admin)

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

{% openapi src="/files/Lii1IpL0WvkEW9nWVbfo" path="/api/company" method="post" %}
[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 %}

The endpoint "/api/company" is used to create a new company. It is a POST request and requires an API key with either "partner" or "admin" access. The request body must be in JSON format and include the name of the company.

The response to a successful request will be a 200 status code with a JSON object. The object includes the company information, including company constants, the company ID, and the company name. In case of an error, the "error" field in the response will contain a code and a message describing the error.
