---
title: "Import Companies"
method: POST
path: "/companies/import"
tags: ["Companies"]
---

# Import Companies

`POST /companies/import`

## Request

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

Create or update companies from a batch of contacts. SPENDS CREDITS.

Contacts are grouped by email domain: a new domain creates a company, a
known one is updated. Every NEW company then triggers the full
intelligence pipeline - a site crawl, several model calls and a paid
enrichment lookup - and every contact triggers a paid person lookup. One
request with 50 domains and 500 contacts is 50 pipelines plus 550 provider
calls, so this is the most expensive operation on the company surface.

The body is REQUIRED here. The app declares it optional and then reads
`data.contacts` unconditionally, so an empty request there is an
AttributeError and a 500; requiring it makes the same request a 422.

Individual rows can fail without failing the call - read the response
rather than the status.

## Headers

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

## Request body

- ImportCompaniesRequest: Create or update companies from a batch of contacts. Grouping is by email domain: a new domain creates a company, a known one is updated in place. There is no separate "company" payload.
  - `source` string, required: Where the records came from, recorded on the import.
  - `contacts` CompanyContactImport[], required: Contacts to import.
    - `email` string, required: Email address. Also the company-grouping key.
    - `first_name` string, required: First name.
    - `last_name` string, required: Last name.
    - `title` string, nullable: Job title.
    - `phone` string, nullable: Phone number.
    - `linkedin_url` string, nullable: LinkedIn profile URL.
    - `company_name` string, nullable: Company name, used only when the domain is unknown.
    - `role` string, nullable: Buying-committee role: decision_maker | influencer | champion | end_user | blocker | coach.
    - `contact_owner` string, nullable: Contact owner.
    - `company_owner` string, nullable: Company owner.

## Response `202`

Successful Response

- ApiResponseCrmRecordPayload
  - `data` CrmRecordPayload, required: An open envelope for one record, one dashboard or one job receipt. Open because most of these reads are COMPUTED shapes - an engagement summary, a next-best-step, an intelligence status - that grow with the product, and dropping a field from an advisory read makes it say "nothing to report" rather than "we did not tell you".
  - `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)
