HeadHoncho

Get settings

Get settings is a read in the HeadHoncho API. What each company is set up with: name, hours, service area, week and time zone, plus the job types and the statuses with their line.

Read as Markdown

The request

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

GET /api/v1/settings

The key needs the Company settings 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
company_idid, in the queryNoOne company. Default: every company the credential reaches.cmp_14f5

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

organization (id, name). companies, one per company: id, name, status, service_area, time_zone, country, week_start and week_end (0 is Monday), color, has_logo, business_hours (weekday, opens, closes) and service_places (city, state). job_types and statuses are shared by every company: each status has its slug, tone, colors, icon, band (line or detour), position, archived and job_count, the jobs on it in the companies this credential reaches. status_icons lists the marks a status may wear.

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
organizationobjectThe organization.
organization.idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
organization.nametextThe name, as the app shows it.
companieslist of objectsThe companies.
companies[].idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
companies[].nametextThe name, as the app shows it.
companies[].statustextThe job status.
companies[].service_areatextThe service area.
companies[].time_zonetextThe company's time zone name, such as America/Chicago.
companies[].countrytextThe country.
companies[].week_startwhole numberThe week start.
companies[].week_endwhole numberThe week end.
companies[].colortextThe color.
companies[].has_logotrue or falseTrue when there is a logo.
companies[].business_hourslist of objectsThe business hours.
companies[].business_hours[].weekdaywhole numberThe weekday.
companies[].business_hours[].openstextThe opens.
companies[].business_hours[].closestextThe closes.
companies[].service_placeslist of objectsThe service places.
companies[].service_places[].citytextThe city.
companies[].service_places[].statetextThe state or region.
job_typeslist of objectsThe job types.
job_types[].idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
job_types[].nametextThe name, as the app shows it.
job_types[].positionwhole numberWhere the change landed in the event log. Pass it as after on a read to see your own write.
job_types[].archivedtrue or falseThe archived.
statuseslist of objectsThe statuses.
statuses[].idid (text)The id of this record. Ids are opaque text: keep them exactly as given.
statuses[].nametextThe name, as the app shows it.
statuses[].slugtextThe same name as a lowercase code word. Match on this, not on the name.
statuses[].tonetextThe tone.
statuses[].colortextThe color.
statuses[].inktextThe ink.
statuses[].icontextThe icon.
statuses[].bandtextThe band.
statuses[].positionwhole numberWhere the change landed in the event log. Pass it as after on a read to see your own write.
statuses[].archivedtrue or falseThe archived.
statuses[].job_countwhole numberThe job count.
status_iconslist of textThe status icons.

Shared by every company

Job types and statuses belong to the workspace, not to one company. The same list is returned whichever company you ask for.

Counts

job_count leaves out Trash and jobs in companies this credential does not reach.

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.
`out_of_scope`404No such company 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.