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

# Create Company

`POST /companies`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/companies`
- Auth: HTTP bearer

Create a company.

``domain`` is required; the company is deduped by domain (an existing
company with the same domain is reused rather than duplicated). Returns the
``company_id`` (mashup_companies.id) — pass it to
``g8_update_contact``/``company_id`` to attach the company to a contact, or
use it on a deal. Optionally add the company to a list via ``list_id``.

Routes to the same production ``CreateCompanyHandler`` the in-app "add
company" flow uses (dedups, generates COMPANY_ID, creates the ABM/CRM
overlay so the company is immediately pickable on a Deal).

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- CompanyCreateRequest: Request body for creating a company. ``domain`` is required — it drives dedup (an existing company with the same domain is reused, not duplicated) and the Deals company picker. Every other field is optional.
  - `domain` string, required: Company domain, e.g. acme.com (required)
  - `name` string, nullable
  - `website` string, nullable
  - `phone` string, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `zip` string, nullable
  - `industry` string, nullable
  - `employee_count` string, nullable
  - `linkedin_url` string, nullable
  - `list_id` integer, nullable: Optional list to add the company to after creation

## Response `201`

Successful Response

- ApiResponseCompanyCreateResponse
  - `data` CompanyCreateResponse, required
    - `status` string, required
    - `company_id` integer, nullable
    - `merged` boolean
    - `warnings` string[]: Advisory notes about values that look wrong (e.g. an employee_count with no number, an unrecognised country, or a linkedin_url that is not a web address and was not saved). Empty when the input is clean.
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

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