---
title: "POST /api/v4/companies"
method: POST
path: "/api/v4/companies"
---

# POST /api/v4/companies

`POST /api/v4/companies`

Create companies.

## Request body

- CompanyCreateItem[]
  - `request_id` string — Client-side request id
  - `name` string
  - `responsible_user_id` integer
  - `created_by` integer
  - `updated_by` integer
  - `created_at` integer
  - `updated_at` integer
  - `custom_fields_values` CustomFieldValue[] — Custom fields payload
    - `field_id` integer — Use either field_id or field_code (e.g. PHONE/EMAIL)
    - `field_code` string — Field code (e.g. PHONE/EMAIL)
    - `values` CustomFieldValueItem[], required — Values for the field (multiple values allowed)
      - `value` union, required
        - string
        - integer
        - boolean
      - `enum_id` integer — Option id for list/select custom fields (one of predefined options)
      - `enum_code` string — Option code for list/select custom fields (if you use code instead of id)
  - `tags_to_add` Tag[] — Tags to attach
    - `id` integer
    - `name` string
    - `color` string
  - `_embedded` object — Embedded entities
    - `tags` Tag[]
      - `id` integer
      - `name` string
      - `color` string

## Response `200`

The request has succeeded.

- union
  - CompanyCreateResponse
    - `_links` object
    - `_embedded` object
      - `companies` CompanyCreateResult[]
        - `id` integer
        - `request_id` string
        - `_links` object
  - Problem
    - `title` string
    - `status` integer
    - `detail` string
    - `type` string

---

[API](https://skmtc.net/hexlet/apis/amocrm-api.md) · [All operations](https://skmtc.net/hexlet/apis/amocrm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/amocrm-api/versions/800f4ed7083b/schema)
