# create_client

> Add a client to the workspace.

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: asks first: it changes something in your workspace, so clients ask you first.

Add a client to the workspace. Returns the new client as get_client does. The email must not belong to another live client (409: use search_clients and update that one instead). With no owner_user_id, you own it when you are a workspace member; a client made with an API key has no owner. fields sets custom values by field id (see list_client_fields). When the person comes from a CRM search hit, pass crm_record so the new client is linked to that GlobalyOS or Agentcis record. Past documents sent to the email join the client. Masked values (•••123) can't be sent back: ask the person for the full number.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | Up to 200 characters |
| `email` | string \| null | no | Up to 254 characters |
| `phone` | string \| null | no | Up to 40 characters |
| `company_id` | string \| null | no | An existing company's id (from a client's company.id) |
| `notes` | string | no | Up to 10000 characters |
| `owner_user_id` | string \| null | no | A workspace member's user id; default you |
| `fields` | object | no | Custom values by field id: { "<field id>": value } (types in list_client_fields) |
| `crm_record` | object | no | The CRM record this client is made from |
| `crm_record.source_id` | string | yes | recordRef.sourceId from search_clients' crm.results. Up to 200 characters |
| `crm_record.entity` | string | yes | recordRef.entity. Up to 100 characters |
| `crm_record.record_id` | string | yes | recordRef.recordId. Up to 200 characters |
