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

# Create a company

`POST /companies`

## Request

- Base URL: `https://joinways.app/api/v1`
- URL: `https://joinways.app/api/v1/companies`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://joinways.app/oauth/authorize`, token URL `https://joinways.app/api/oauth/token`, scopes: `mcp.write`)

Creates a company (enrichment queued) and a timeline entry. **Role permission:** `data.write`.

## Headers

- `Idempotency-Key` string

## Request body

- CompanyCreate
  - `name` string, required
  - `website` string
  - `phone` string
  - `registration_number` string: Company registration number (e.g. SIRET).
  - `siret` string: Alias of `registration_number`.
  - `vat_number` string
  - `address` string
  - `city` string
  - `postal_code` string
  - `state` string: State / province / region.
  - `country` string

## Response `201`

The created company.

- Company: A client company of the CRM.
  - `id` string, uuid
  - `name` string
  - `registration_number` string, nullable: Company registration number (e.g. SIRET).
  - `vat_number` string, nullable: VAT / tax identifier.
  - `website` string, nullable
  - `phone` string, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `postal_code` string, nullable
  - `state` string, nullable: State / province / region (US state, Canadian province…).
  - `country` string, nullable
  - `enrichment_status` string, nullable: Automatic enrichment of the company profile.
  - `enrichment_completed_at` string, date-time, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `400`: Validation failed (`invalid_request`). For a body that fails the schema, `details` holds `formErrors` and `fieldErrors`.
- `401`: Missing, invalid, expired or revoked bearer token (`unauthorized`).
- `403`: `forbidden`: the token lacks the scope, its owner's role lacks the permission named by the operation, or the workspace has neither the Pro plan nor a trial (`details.reason` `plan_not_eligible`).
- `409`: The state of the record refuses the operation (`conflict`). `details.reason` is a stable code.
- `429`: Too many requests (`rate_limited`). `details.reason`: `per-ip`, `per-account-minute`, `per-account-day`, or `email_rate_limited` (email budget). Always carries `Retry-After`: wait that many seconds.

---

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