---
title: "Save a client"
method: POST
path: "/api/clients"
---

# Save a client

`POST /api/clients`

## Request

- Base URL: `https://declararfacil.com`
- URL: `https://declararfacil.com/api/clients`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required
  - `nif` string
  - `address` string
  - `clienteEnEspana` boolean
  - `email` string
  - `phone` string
  - `notes` string

## Response `200`

OK

## Other responses

- `401`: invalid_token: unknown or replaced token; start a new connection with POST /api/agent/v1/connect
- `402`: subscription_required: no active subscription; the body carries subscribe_url, steps, next_step and tell_the_user

---

[API](https://skmtc.dev/declararfacil/apis/declarar-facil-agent-api.md) · [All operations](https://skmtc.dev/declararfacil/apis/declarar-facil-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/declararfacil/apis/declarar-facil-agent-api/revisions/6d6837a48359?raw)
