---
title: "Add a company to your workspace"
description: "Other routes 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.

# Add a company to your workspace

{/* 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="post">POST</span>
<code class="cvo-op-path-code">/v1/session/workspaces/&#123;workspaceId&#125;/companies</code>
</div>
</div>

Adds a company to the signed-in person's own workspace, in the environment the request is for (`Certinvo-Environment`), as the console's Add company does.

Only an owner, or an admin with access to every company, may add one. The company is not marked as set up: the console opens its setup. Nothing is copied from another company.

Send an `Idempotency-Key`. The same key with the same body answers the company it already made (200). The same key with another body is refused with 409 `idempotency_key_reused`.

Only a signed-in person can add one. An API key is refused with 401 `session_required`; a workspace key adds companies with `POST /v1/companies`.

## Path parameters

## Headers

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | This key already made this company; it is answered again. |
| `201` | The company was made. |
| `400` | No Idempotency-Key (`idempotency_key_required`), or the body is not a company (`invalid_company`). |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used (`session_required`). |
| `403` | This person may not add a company (`role_required`). |
| `404` | The workspace is not this person's (`not_found`). |
| `409` | The key was used for another company (`idempotency_key_reused`), or the reference names another company (`company_reference_conflict`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/add-a-company-to-your-workspace/index.mdx
