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

# Create a client

`POST /api/v1/clients`

## Request

- Base URL: `https://app.relaw.ai`
- URL: `https://app.relaw.ai/api/v1/clients`
- Auth: HTTP bearer

Creates a client (`lifecycle: client`). Pass `templateId` to open a matter at the same time. Distinct from creating a lead.

## Request body

- object
  - `firstName` string, required
  - `lastName` string, required
  - `email` string
  - `phone` string
  - `type` 'person' | 'organization'
  - `templateId` string, uuid

## Response `201`

Created. `matterId` is set when a template was supplied.

- Client
  - `id` string, uuid, required
  - `object` 'client', required
  - `firstName` string, required
  - `lastName` string, required
  - `email` string, nullable: Null is a real possibility, not an edge case — imported contacts often have no email. Do not assume this is present.
  - `phone` string, nullable: E.164.
  - `type` 'person' | 'organization'
  - `lifecycle` 'lead' | 'client' | 'former', required: `lead` has not been engaged; `client` is active; `former` is closed.
  - `leadSource` string, nullable
  - `leadScore` integer, nullable: 0–100, or null if not yet scored. Recomputed as engagement changes and as a lead goes cold, so it moves without the record changing.
  - `leadScoreBand` 'hot' | 'warm' | 'cold' | 'null', nullable
  - `attribution` object: First-touch, captured once on arrival and never overwritten.
    - `utmSource` string, nullable
    - `utmMedium` string, nullable
    - `utmCampaign` string, nullable
    - `utmTerm` string, nullable
    - `utmContent` string, nullable
    - `referrerHost` string, nullable
  - `createdAt` string, date-time

## Other responses

- `400`: Malformed request.
- `401`: Missing, malformed, revoked, or unknown API key.
- `429`: Over 120 requests per minute for this key. Honour the `Retry-After` header.

---

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