---
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

---

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