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

# Create a contact

`POST /contacts`

## Request

- Base URL: `https://corebee.ai/api/v1`
- URL: `https://corebee.ai/api/v1/contacts`
- Auth: HTTP bearer

Requires at least one of name or email.

## Request body

- ContactCreate: At least one of name or email is required.
  - `name` string
  - `email` string, email
  - `phone_number` string
  - `avatar_url` string
  - `custom_attributes` object

## Response `201`

Created

- object
  - `data` Contact, required
    - `id` string, uuid
    - `org_id` string, uuid
    - `name` string, nullable
    - `email` string, nullable
    - `phone_number` string, nullable
    - `avatar_url` string, nullable
    - `custom_attributes` object
    - `created_at` string, date-time

## Other responses

- `400`: Validation error
- `401`: Invalid or missing credential

---

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