---
search:
  tags:
    - Companies
    - POST
seo:
  description: >-
    Batch endpoint (batch-first): create one or more companies with domains.
    Supports partial… Reference for the POST /companies endpoint in the Modem
    API.
sidebar:
  label: Create companies
  badge: POST
title: Create companies
type: openapi-operation
---
Batch endpoint (batch-first): create one or more companies with domains. Supports partial success - each company is created independently.

`POST /companies`

**Request body** (`application/json`, required)

- `companies` (object[], required)

Request body example:

```json
{
  "companies": [
    {
      "domain": "string",
      "name": "string"
    }
  ]
}
```

**Responses**

- `200` — OK
- `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.

Response example, 200:

```json
{
  "results": [
    {
      "data": {
        "domains": [
          "string"
        ],
        "firstSeenAt": "2019-08-24T14:15:22Z",
        "id": "string",
        "lastSeenAt": "2019-08-24T14:15:22Z",
        "logoUrl": "http://example.com",
        "messageCount": 0,
        "name": "string",
        "personCount": 0,
        "primaryDomain": "string"
      },
      "domain": "string",
      "error": "string",
      "name": "string",
      "success": true
    }
  ]
}
```
