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

# Create a company

`POST /companies`

## Request

- Base URL: `https://there-there.app/api`
- URL: `https://there-there.app/api/companies`
- Auth: HTTP bearer

## Headers

- `X-Workspace-Id` integer

## Request body

- object
  - `name` string, required
  - `domain` string, nullable: Bare hostname, lowercased. Unique per workspace. An email address, a scheme, or a path is rejected.
  - `phone` string, nullable
  - `notes` string, nullable
  - `contact_ulids` string[]: Contacts to attach to the new company. A ULID from another workspace is ignored.

## Response `201`

Company created

- object
  - `data` Company
    - `id` integer
    - `ulid` string
    - `name` string
    - `domain` string, nullable
    - `phone` string, nullable
    - `notes` string, nullable
    - `contact_count` integer, nullable
    - `ticket_count` integer, nullable

---

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