---
title: "Create a new client"
method: POST
path: "/clients"
tags: ["Clients"]
---

# Create a new client

`POST /clients`

Creates a new client with optional contacts

## Request body

- object
  - `client_name` string, required
  - `source` string
  - `address` string
  - `tax_name` string
  - `tax_number` string
  - `language` string
  - `contacts` object[]
    - `title` string
    - `first_name` string
    - `last_name` string
    - `email` string
    - `phone` string

## Response `200`

Client created successfully

- Client — Client resource
  - `id` integer — OpenAPI Schema definitions for API responses
  - `team_id` integer
  - `name` string
  - `source` string, nullable
  - `address` string, nullable
  - `tax_name` string, nullable
  - `tax_number` string, nullable
  - `credit_available` number
  - `status` object
    - `id` integer
    - `name` string
  - `sent_total` number
  - `collected_total` number
  - `outstanding_total` number
  - `average_days_to_pay` integer, nullable
  - `contacts` Contact[]
    - `id` integer
    - `team_id` integer
    - `client_id` integer
    - `title` string, nullable
    - `first_name` string
    - `last_name` string
    - `email` string, email
    - `phone` string, nullable
  - `projects_count` integer, nullable
  - `invoices_count` integer, nullable
  - `estimates_count` integer, nullable
  - `other_income_count` integer, nullable

## Other responses

- `401` — Unauthenticated
- `422` — Validation error

---

[API](https://skmtc.net/harpoonapp/apis/harpoon-api-documentation.md) · [All operations](https://skmtc.net/harpoonapp/apis/harpoon-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/harpoonapp/harpoon-api-documentation/revisions/e8fd192f94c6/schema)
