---
title: "Add a contact to the address book"
method: POST
path: "/api/v1/contacts"
tags: ["Contacts"]
---

# Add a contact to the address book

`POST /api/v1/contacts`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/contacts`
- Auth: API key in cookie `better-auth.session_token`

Adds a person or a company. Email first and then phone are the channels a message would try, in that order, and the language is the team’s unless another is given. Nothing is sent to the contact.

## Request body

- object
  - `firstName` string
  - `lastName` string
  - `companyName` string
  - `email` union
    - ''
    - string, email
  - `phone` string
  - `kind` 'tenant' | 'guarantor' | 'applicant' | 'guest' | 'contractor' | 'supplier' | 'owner' | 'representative' | 'other'
  - `language` string

## Response `200`

Added.

- object
  - `ok` unknown, required
  - `data` object, required
    - `contact` object, required
      - `id` string, required: Stable record id, e.g. `lse_012`.
      - `kind` string, required
      - `firstName` string, required
      - `lastName` string, required
      - `companyName` string
      - `email` string
      - `phone` string
      - `language` string, required
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `400`: No name, or a field out of range.

---

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