---
title: "List companies"
description: "Companies and keys API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List companies

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/companies</code>
</div>
</div>

Returns the companies of your workspace in the key's environment. A platform uses one company per customer.

A live key lists live companies. A test key lists sandbox companies.

Requires a workspace key. A company key or a signed-in session returns `401 workspace_key_required`. Sending a `Certinvo-Company` header returns `400 company_not_expected`.

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | Every company of this workspace in this environment, oldest first. |
| `400` | A company was named in the request (`company_not_expected`). |
| `401` | No usable credential was sent (`invalid_credentials`), or the credential is not a workspace key (`workspace_key_required`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/workspaces/list-companies/index.mdx
