## TL;DR

Pipedrive rejects the company because the domain already exists. Search for the existing company first and update it instead of creating a duplicate.

## Error

```text
Pipedrive API error 422: company domain already exists
```

## Steps

1. Search Pipedrive for the domain Expected: you find the existing company.
2. Update the existing company instead Expected: no duplicate is created.
3. Or use a different unique identifier Expected: the create is valid.
4. Add an existence check before create in your code Expected: it cannot regress.

## When to use

- Pipedrive 422 company domain exists
- The company is already there

## When not to use

- It should not exist (then check for soft-deleted companies)
- You need a separate company (then the domain must differ)

## Tool compatibility

- Pipedrive organizations API
- CRM sync

## Variant phrasings

### pipedrive domain already exists

Search first, then update the existing company.

### 422 company domain pipedrive

Same: the domain is taken.

## Why it happens

Domains are unique in Pipedrive. Agents create-then-handle-error instead of search-then-create.

## Edge cases

- Domain matching is case-insensitive
- Merged companies keep one domain

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_SD7TiBIR9jrkIC9U5KAYOA
