---
title: "Create contact (strict REST)"
method: POST
path: "/contacts"
tags: ["Contact"]
---

# Create contact (strict REST)

`POST /contacts`

## Request

- Base URL: `https://api.spurnow.com`
- URL: `https://api.spurnow.com/contacts`
- Auth: HTTP bearer

Creates a WhatsApp contact using strict REST semantics. Returns 4xx exceptions for validation/duplication errors.

## Request body

- CreateContactDto
  - `firstName` string, required: Contact first name.
  - `lastName` string, required: Contact last name.
  - `email` string: Contact email.
  - `number` string, required: Phone number with country code, digits only.
  - `name` string: Optional full name override.

## Response `201`

Contact created successfully.

- ContactDto
  - `id` number, required
  - `firstName` string, required
  - `lastName` string, required
  - `email` string, required
  - `number` string, required

## Other responses

- `400`: Invalid phone number format.
- `404`: WhatsApp channel not connected for workspace.
- `409`: Duplicate contact exists.

---

[API](https://skmtc.dev/spurnow/apis/spur-apis.md) - [All operations](https://skmtc.dev/spurnow/apis/spur-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/spurnow/apis/spur-apis/revisions/27ca7bf002cb?raw)
