---
title: "Create a contact"
method: POST
path: "/contacts"
tags: ["Contacts"]
---

# Create a contact

`POST /contacts`

Creates a contact in the workspace.

Tags are linked by `id` or `name` and must already exist in the workspace — unknown tags are ignored. Use `PATCH /contacts/{contactId}/tags` to create tags on demand.

`customProperties` are keyed by property name and only properties already defined in the workspace are persisted.

## Request body

- object
  - `firstName` string, nullable
  - `lastName` string, nullable
  - `email` string, nullable
  - `phone` string, nullable
  - `occupation` string, nullable
  - `gender` string, nullable
  - `birthdate` string, nullable
  - `age` number, nullable
  - `notes` string, nullable
  - `tags` object[] — Tags to link to the contact. Only existing tags are linked
    - `id` string — Id of an existing tag
    - `name` string — Name of an existing tag
  - `customProperties` object — Values for the custom contact properties of the workspace, keyed by property name

## Response `201`

Contact created successfully

- object
  - `id` string, uuid, required — Id of the created contact

## Other responses

- `400` — Bad request, invalid input data
- `401` — Unauthorized

## Changes

- **2026-07-28** `8ccfb9a461e2` — 3 breaking, 1 warning, 14 info
  - request body became required
  - request property `age` list-of-types was narrowed by removing types `integer` from media type `application/json`
  - added 'propertyNames' constraint to the request property `customProperties`
  - removed the request property `waProfileName`
  - …14 more
- **2026-01-27** `e21feba47bec` — 1 info
  - added the new optional request property `customProperties`

[Change history](https://skmtc.dev/indigohive/apis/cogfy-messenger-public-api/changes/contacts/post.md)

---

[API](https://skmtc.dev/indigohive/apis/cogfy-messenger-public-api.md) · [All operations](https://skmtc.dev/indigohive/apis/cogfy-messenger-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/indigohive/cogfy-messenger-public-api/revisions/30bd33ee45c9/schema)
