---
title: "Create a company"
method: POST
path: "/companies"
tags: ["Companies"]
---

# Create a company

`POST /companies`

## Request

- Base URL: `https://api.klipy.ai/api/v1`
- URL: `https://api.klipy.ai/api/v1/companies`
- Auth: one of:
  - API key in header `X-Klipy-Api-Key`
  - HTTP bearer

Creates a company. If the domain already exists within the organization, returns 200 with the existing company id (idempotent-style create).

## Request body

- CompanyCreateRequest
  - `domain` string, required
  - `name` string

## Response `200`

Company already exists in this organization; existing id returned

- CompanyIdSuccessResponse
  - `object` string, required
  - `data` object, required: The returned resource
    - `id` string, required
  - `meta` ApiMeta, required
    - `request_id` string, required
    - `api_version` string, required
    - `timestamp` string, date-time, required

## Other responses

- `201`: Company created
- `401`: Missing or invalid API key
- `403`: Insufficient scope for this operation
- `409`: Conflict — the request conflicts with the current state of the resource
- `422`: Validation error - request body failed validation
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/klipy/apis/klipy-api.md) · [All operations](https://skmtc.dev/klipy/apis/klipy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/klipy/apis/klipy-api/revisions/d0b77f2a62a8?raw)
