HeadHoncho

Get client

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

Read as Markdown

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.

Send your key as Authorization: Bearer hh_live_.... See API keys.

Parameters

NameKindRequiredDescriptionExample
client_idid, in the pathYesThe 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.

Your key stays in this page and is never sent anywhere. Copy the line below and run it yourself.

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.

FieldTypeMeaning
idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
nametextThe name, as the app shows it.
phonetextA phone number. Hidden when the key hides personal details.
second_phonetextA second phone number. Hidden when the key hides personal details.
emailtextThe email.
job_countwhole numberThe job count.
last_job_attime (ISO 8601, with offset)When the last job happened. Carries its offset from UTC; Z is UTC.
created_attime (ISO 8601, with offset)When it was created. Carries its offset from UTC; Z is UTC.
jobslist of objectsThe jobs.
jobs[].idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
jobs[].numberwhole numberThe number people say out loud, such as the job number.
jobs[].statustextThe job status.
jobs[].created_attime (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

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