---
title: "Merge companies"
method: POST
path: "/companies/merge"
tags: ["Companies"]
---

# Merge companies

`POST /companies/merge`

## Request

- Base URL: `https://api.modem.dev/v1`
- URL: `https://api.modem.dev/v1/companies/merge`
- Auth: HTTP bearer

Merge multiple companies into a single target company. All domains, person associations, and Slack workspaces are moved to the target.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `sourceCompanyIds` string[], required
  - `targetCompanyId` string, required

## Response `200`

OK

- object
  - `mergedCount` integer, required

## Other responses

- `400`: Invalid request (validation failed).
- `401`: Missing or invalid API key.
- `403`: The API key does not have access to this resource.
- `404`: The requested resource was not found.
- `409`: The request conflicts with an existing resource or idempotency operation.
- `429`: Rate limit exceeded.
- `500`: Internal server error.

---

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