HeadHoncho

Whoami

Whoami is a read in the HeadHoncho API. Who this key or app acts as, which companies it reaches, what it may do, and the words to use in commands: statuses, job types and technicians.

Read as Markdown

The request

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

GET /api/v1/whoami

Any key or connected app can call it. It counts as a read call: 300 a minute for each key or connected app. See rate limits.

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

Parameters

This call takes no parameters.

What comes back

The workspace, the credential, the companies it may name, its access per area, and the lookups a command needs: every status, job type and technician, with ids. Lookups are carried here so a client never has to guess a name.

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

Call this first

Everything a command needs by id is here: the company, the status, the job type, the technician. A name works too where the docs say so, and the answer tells you which name it understood.

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.
`expired_token`401That token has expired. Refresh it, or connect the app again.
`rate_limited`429Too many calls this minute. Wait and try again.