# Get client

Get client is a read in the HeadHoncho API. One client: name, phones and email, and their jobs, newest first.

Page: https://headhoncho.app/docs/api/get_client | Part of the HeadHoncho API docs: https://headhoncho.app/docs/api | Machine-readable: https://headhoncho.app/docs/api/openapi.json | Everything in one file: https://headhoncho.app/docs/api/llms-full.txt

## The request

Reference for **Get client**, HeadHoncho API v1. It is a read, sent to the base address `https://api.headhoncho.app`.

`GET /api/v1/clients/{client_id}`

The key needs the **Jobs** area at **read**. An answered call costs 1 credit; a refusal costs nothing. See [credits](https://headhoncho.app/docs/api/errors#credits).

Send your key as `Authorization: Bearer hh_live_...`. See [API keys](https://headhoncho.app/docs/api/keys).

## Parameters

| Name | Kind | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `client_id` | id, in the path | Yes | The client id, from List clients. | `cli_9c40` |

## Try it with your key

Paste your key and change the values. The box builds the call as a cURL line and a fetch line, ready to copy. It never sends anything itself.

Paste your key on the web page and it fills a cURL line and a fetch line with your key and the example values. The page never sends the key anywhere. The same lines with a placeholder key are under Examples below.

## What comes back

The client in the List clients shape, and jobs: up to 100, newest first, each with id, number, status and created_at. Jobs in Trash are not listed.

It never changes a record. It only reads the companies the key reaches.

## Every field in the answer

Types are read from the example answer. Money is a plain number in the company's currency. A time carries its offset from UTC (`Z` is UTC). Ids are opaque text. A field with no line of its own here has its name spelled out; the common fields mean the same on every page.

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | id (text) | The id of this record. Ids are opaque text: keep them exactly as given. |
| `name` | text | The name, as the app shows it. |
| `phone` | text | A phone number. Hidden when the key hides personal details. |
| `second_phone` | text | A second phone number. Hidden when the key hides personal details. |
| `email` | text | The email. |
| `job_count` | whole number | The job count. |
| `last_job_at` | time (ISO 8601, with offset) | When the last job happened. Carries its offset from UTC; `Z` is UTC. |
| `created_at` | time (ISO 8601, with offset) | When it was created. Carries its offset from UTC; `Z` is UTC. |
| `jobs` | list of objects | The jobs. |
| `jobs[].id` | id (text) | The id of this record. Ids are opaque text: keep them exactly as given. |
| `jobs[].number` | whole number | The number people say out loud, such as the job number. |
| `jobs[].status` | text | The job status. |
| `jobs[].created_at` | time (ISO 8601, with offset) | When it was created. Carries its offset from UTC; `Z` is UTC. |

## Needs every company

The client book is the whole workspace's, not one company's. A credential that reaches only some companies is refused with no_access, so it can never read or change a person who also belongs to a company it cannot see.

## Errors that apply

| Code | Status | What it means |
| --- | --- | --- |
| [`missing_key`](https://headhoncho.app/docs/api/errors#missing_key) | 401 | Send your key as Authorization: Bearer hh_live_... |
| [`unknown_key`](https://headhoncho.app/docs/api/errors#unknown_key) | 401 | That key is not one we issued, or it was revoked. |
| [`no_access`](https://headhoncho.app/docs/api/errors#no_access) | 403 | This credential does not reach that. Ask the person who made it for access. |
| [`not_found`](https://headhoncho.app/docs/api/errors#not_found) | 404 | No such record in the companies this credential reaches. |
| [`invalid`](https://headhoncho.app/docs/api/errors#invalid) | 422 | Some fields were refused. See fields. |
| [`no_credits`](https://headhoncho.app/docs/api/errors#no_credits) | 402 | Out of credits. Top up on Settings › Credits, or turn on auto top-up. |

## Related

- [List clients](https://headhoncho.app/docs/api/list_clients): The people behind your jobs, by name, with their phones and how many jobs each has.
- The same records in the app: [the Jobs panel](https://headhoncho.app/docs/jobs).
- How the API fits together: [the model](https://headhoncho.app/docs/api/model), [API keys](https://headhoncho.app/docs/api/keys), [errors](https://headhoncho.app/docs/api/errors) and [the MCP server](https://headhoncho.app/docs/api/mcp).

## Examples

### Answer

```json
{
  "id": "cli_9c40",
  "name": "R. Azoulay",
  "phone": "+12175550142",
  "second_phone": "",
  "email": "r.azoulay@example.com",
  "job_count": 3,
  "last_job_at": "2026-10-11T18:25:40Z",
  "created_at": "2026-08-02T15:10:00Z",
  "jobs": [
    {
      "id": "job_1138",
      "number": 1138,
      "status": "Scheduled",
      "created_at": "2026-10-11T18:25:40Z"
    }
  ]
}
```

### cURL

```bash
curl "https://api.headhoncho.app/api/v1/clients/cli_9c40" \
  -H "Authorization: Bearer hh_live_..."
```

### Python

```python
import requests

response = requests.get(
    "https://api.headhoncho.app/api/v1/clients/cli_9c40",
    headers={"Authorization": "Bearer hh_live_..."},
)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.headhoncho.app/api/v1/clients/cli_9c40", {
  headers: { Authorization: "Bearer hh_live_..." },
});
const data = await response.json();
console.log(data);
```

### Your AI

```text
Tool: get_client
Arguments: client_id (id, required)
Access: read on Jobs
Hints: readOnly=true, destructive=false, idempotent=true, openWorld=false
Try asking: "Using HeadHoncho, get client with client_id cli_9c40."
```
