Handee HQ API

Version 1. Read and write the CRM from other systems.

Getting in

  • Base URL: https://crm.handee.co.za/api/v1
  • Authentication: an API key in the header Authorization: Bearer sl_…. Keys are made by a Handee HQ admin under Settings → API keys, with read, read-and-write or intake (website form only) access.
  • Machine-readable reference (OpenAPI 3): https://crm.handee.co.za/openapi.json
  • Lists page with limit (up to 100) and cursor, returning { items, nextCursor, total }. Writes accept an Idempotency-Key header. Errors are always { "error": { "code", "message" } }.
curl -H "Authorization: Bearer sl_…" "https://crm.handee.co.za/api/v1/me"
curl -H "Authorization: Bearer sl_…" "https://crm.handee.co.za/api/v1/contacts?q=absa&limit=20"
curl -X POST -H "Authorization: Bearer sl_…" -H "Content-Type: application/json" \
  -d '{"companyId":"<id>","fullName":"Jane Dlamini","email":"jane@acme.co.za"}' "https://crm.handee.co.za/api/v1/contacts"

MCP (Claude and other agents)

The same operations are available as MCP tools over streamable HTTP at https://crm.handee.co.za/mcp. Claude connects with OAuth (it sends you to Handee HQ to sign in and approve); other clients can send a Handee HQ API key as a bearer token. Discovery documents: /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server.

What is covered

Every part of Handee HQ, and what this API (and so the MCP tools) offers for it. A test in the codebase holds this list to the app: a new section fails the build until its API surface is decided — read and write, read only, or deliberately not exposed, with the reason.

Dashboard · read only

The Dashboard (the root page)

Search · read only

The address book and the search box

Clients · read and write

Active clients and a company's record

  • Deleting a company — destructive, done in the UI

Contacts · read and write

The address book and a client's People

  • Deleting a contact — destructive, done in the UI

Deals · read and write

Sales → the Deal pipeline

Contracts · read and write

A client's Legal contracts

Employees · read and write

Employees

  • Deleting an employee and their documents — destructive, done in the UI
  • Uploading employee documents is covered by POST /documents with an employee target

Documents · read and write

Every document on a client, deal, contract or employee

  • A document's bytes are streamed outside the JSON API, at GET /documents/{id}/file (?preview=1 for a PDF rendering)

Signing · read and write

The Signature log and every document's send page

Timesheets (raw time) · read and write

Clients → Timesheets

Client timesheets · read and write

Clients → Timesheets → Client sheets

  • The approved sheet's PDF is the document it filed: GET /documents/{id}/file

Sends · read and write

Send to client (the composer)

  • Draft with AI is not a route: the model writing the message is the caller itself

Meetings · read and write

Granola and each client's Meeting notes

  • Editing a summary by hand — the client summary is written from the page for now
  • Filing a meeting under another client, and ignoring one, are done from the page

Activities · read and write

The activity timeline on clients, contacts and deals

Vault · read and write

The Document Vault

  • Managing a section itself — renaming, archiving, who is on it, letting Claude use it — is done from the section's menu

Workbench · read and write

Kanban

  • Archiving a card is PATCH /cards/{id} with archived: true

Claude to HQ · read and write

Canvas (the drop box for files Claude makes)

Xero billing · read and write

Settings → Xero, and a client's Billing

  • The OAuth consent itself is a browser flow (Settings → Xero → Connect Xero), not a route
  • An invoice's PDF is streamed outside the JSON API, at GET /files/xero-invoice/{invoiceId}?company={companyId}

External apps · read and write

A client's External apps

Client portal access · read and write

A client's People → Client portal

  • The client's own portal pages stay off the API (see Client portal); this is the staff side of them: who may sign in, the billing switch, and each person's Faster Fixes reviewer link

Marketing · not exposed

Marketing — the newsletter, its lists and campaigns; the do-not-email list

  • By design: the marketing boundary — the API, the MCP tools and the Ask panel never reach the mailing lists, campaigns or the do-not-email list (tests/marketing/boundary.test.ts holds it). Sending, consent and the lists themselves stay in the app

Enquiries · read only

Sales → Enquiries (the website contact form)

  • The only write is the website's own intake route (not an MCP tool); staff read the inbox, and the deals and activities an enquiry makes are on the API

Client portal · not exposed

The client's own portal

  • By design: the portal is what a client uses, not something Claude drives. Clients see approved timesheets, meeting summaries and (with the billing switch) their invoices through it; who may sign in and what each person sees is on the API (Client portal access)

Notifications · not exposed

The bell

  • By design: reminders for the people in Handee HQ; nothing to act on from outside

Settings · not exposed

Settings (connections, users, backups, e-signing)

  • By design: admin-only configuration and the backup/restore of the whole CRM. Backups are taken from the app or by the deploy rule

My account · not exposed

Your account

  • By design: a person's own sign-in details

Staff · not exposed

Staff

  • By design: internal HR-ish views of the team; the employees API is the team's data

Workbook import · not exposed

Import (the workbook)

  • By design: the admin import of the source workbook, with its own mapping and safety rules

Setup · not exposed

First-run setup

Endpoints

MethodPathWhat it doesNeeds
GET/api/v1/healthLiveness and versionNothing
GET/api/v1/meWho this key or session isRead key
GET/api/v1/searchFind companies or people by name, email, domain or job titleRead key
GET/api/v1/companiesList companiesRead key
POST/api/v1/companiesCreate a companyRead and write key
GET/api/v1/companies/{id}One company in full: team, contracts, deals, recent activityRead key
GET/api/v1/contactsList contactsRead key
POST/api/v1/contactsCreate a contact (returns the existing one if the email is already known)Read and write key
GET/api/v1/contacts/{id}One contact in fullRead key
PATCH/api/v1/contacts/{id}Update fields on a contactRead and write key
POST/api/v1/contacts/{id}/outreachSet a contact's outreach statusRead and write key
GET/api/v1/opportunitiesList opportunities (deals)Read key
POST/api/v1/opportunitiesCreate an opportunity (deal)Read and write key
GET/api/v1/opportunities/{id}One deal with its contact, contracts and documentsRead key
PATCH/api/v1/opportunities/{id}Update a deal: value, dates, status (onboarding/won/lost/on_hold), descriptionRead and write key
GET/api/v1/contractsList contracts (retainers and ad hoc jobs)Read key
POST/api/v1/contractsCreate a contract (retainer or ad hoc job) for a company; a proposed, active or paused one makes the company an active client (relationship Client), as in Handee HQRead and write key
GET/api/v1/contracts/{id}One contract with its documentsRead key
PATCH/api/v1/contracts/{id}Update a contract: status, dates, fee, hourly rates, account manager, the deal it came fromRead and write key
GET/api/v1/employeesList employees with current ratesRead key
GET/api/v1/employees/{id}One employee with rates and documentsRead key
GET/api/v1/documentsList documents on a company, deal, contract or employee, oldest first (sort by docDate for the latest)Read key
POST/api/v1/documentsAttach a document: text rendered to DOCX/PDF, a base64 file, or a link; named by the standard conventionRead and write key
GET/api/v1/documents/{id}One document's details (its bytes are at /documents/{id}/file)Read key
DELETE/api/v1/documents/{id}Remove a document and its fileRead and write key
GET/api/v1/time/entriesList raw time entries: by month (period), day range (from/to), client, project, ticket, billable or words (q), newest day first, with the totals for every matchRead key
POST/api/v1/time/entriesLog one time entry: the day, the project, the minutes (a negative is a credit) and what was done; the project's mapping decides the clientRead and write key
PATCH/api/v1/time/entries/{id}Change one time entry (the ledger's rows are kept as logged; a correction is usually a credit row instead)Read and write key
DELETE/api/v1/time/entries/{id}Remove one time entryRead and write key
POST/api/v1/time/importPush a time-log file (the ledger's CSV: date,project,client,ticket,start,end,minutes,billable,note): parsed into time entries, rows already in by their content skipped, projects without a mapping made (to be mapped on the Timesheets → Projects page). Returns the report; dryRun reports without writingRead and write key
GET/api/v1/time/projectsThe project → client mapping time entries resolve through, with how many entries each project hasRead key
PATCH/api/v1/time/projects/{id}Change a project's mapping: the client its time belongs to (entries without one are pointed at it too), the Jira key, whether it is internal, or archivedRead and write key
GET/api/v1/timesheetsList client timesheets: the sheets made for a client, with their totals (filter by client, status or billing month)Read key
POST/api/v1/timesheetsGenerate a client timesheet for a range from the raw entries — a month takes what bills in it, any other range takes the work done in its days — filling its lines; an existing draft for the same range is opened insteadRead and write key
GET/api/v1/timesheets/{id}One client timesheet with its lines, totals and, once approved, the filed PDF (/documents/{id}/file)Read key
POST/api/v1/timesheets/{id}/refreshPull in any raw entries the sheet does not have yet (and, for a month sheet, fold in the month's weekly ones)Read and write key
PATCH/api/v1/timesheets/{id}Change a draft sheet: its default rate (null clears it) or its notesRead and write key
POST/api/v1/timesheets/{id}/linesAdd a line to a draft sheet by hand (something not in the raw entries)Read and write key
PATCH/api/v1/timesheet-lines/{id}Change one line of a draft sheet: the day, the words, the hours, the rate (null follows the sheet's, 0 zero-rates), the role, or excluded (take it off the client's sheet, or put it back)Read and write key
POST/api/v1/timesheet-lines/{id}/moveMove a line to another month: the raw entry's billing month changes with it, and a draft sheet for that month takes it in nowRead and write key
POST/api/v1/timesheets/{id}/approveApprove a sheet: the client version is rendered to a PDF and filed in the client's documents (one per month; approving again replaces it) and the sheet turns read-onlyRead and write key
POST/api/v1/timesheets/{id}/reopenBack to draft, so it can be edited again (approving again replaces the filed PDF)Read and write key
DELETE/api/v1/timesheets/{id}Remove a draft sheet; an approved one is a record and staysRead and write key
GET/api/v1/sendsEvery email composed to a client (the send module), with what rode along — newest firstRead key
POST/api/v1/sendsSend a client several of their documents in one email through Handee's own account — a real email: the message is yours, and the send is recorded on the client's pageRead and write key
GET/api/v1/meetingsFind meeting notes: by client, words, a day range, or whether the client summary is ready; newest firstRead key
GET/api/v1/meetings/{id}One meeting note with both of Handee's summaries (the internal one is never shown to the client)Read key
POST/api/v1/meetings/syncRead Granola for new meeting notes, matching each to a client by attendee emailRead and write key
POST/api/v1/meetings/{id}/summariesWrite (or rewrite) Handee's two summaries of a meeting from Granola's note and the transcript — the internal one and the client oneRead and write key
POST/api/v1/meetings/{id}/sendEmail the client summary to the people in the meeting — a real email; Handee's own people get the internal summary instead, and anyone on the do-not-email list is left out and said soRead and write key
PATCH/api/v1/companies/{id}Update a company: name, relationship, sector, industry, what they do, size, head office, website, the account names we call them, data caveats, notes, and its web domains (fields a person changes are marked manual, so an import never overwrites them)Read and write key
GET/api/v1/companies/{id}/researchThe company's web research on file: the latest profile (sector, what they do, decision-makers), its sources, and when it ran; null when none has runRead key
POST/api/v1/companies/{id}/researchRun the company's web research now: the profile is stored as a new version, the decision-makers become contacts (never duplicates — a close variant fills blanks instead), and blanks on the record are filled from public facts. Slow: a web search and a model runRead and write key
POST/api/v1/employeesAdd an employee, with an optional starting rate effective from their start dateRead and write key
PATCH/api/v1/employees/{id}Update an employee: their name, contact details, job title, start date, or status (ended sets the end date)Read and write key
POST/api/v1/employees/{id}/ratesAdd a rate to an employee's history: when it takes effect, the cost rate, the bill rate, and a noteRead and write key
PATCH/api/v1/rates/{id}Change a rate in an employee's historyRead and write key
DELETE/api/v1/rates/{id}Take a rate off an employee's historyRead and write key
GET/api/v1/signaturesThe signature inbox: every document out for signature, clients and employees, with who is holding it up — the Signature log page's viewRead key
GET/api/v1/activitiesRecent activity: notes, emails, calls and meetings logged against a client, a contact or a deal, newest firstRead key
POST/api/v1/documents/{id}/send-for-signatureSend a document to e-sign: a client's services schedule, NDA, terms or contract to a contact, or an employee's contract, NDA or review to the employee (Handee countersigns); the signed PDF replaces the document when done. Proposals are not signed.Read and write key
GET/api/v1/documents/{id}/signatureWhere a document's signature request standsRead key
POST/api/v1/documents/{id}/signature/remindSend the signing email again to whoever has not signedRead and write key
DELETE/api/v1/documents/{id}/signatureWithdraw an open signature request (one already signed or declined in Documenso is filed as that instead; check the status returned)Read and write key
GET/api/v1/canvasFiles waiting to be filed, in Claude to HQ (the page the canvas paths and tools work on)Read key
POST/api/v1/canvasDrop a file in Claude to HQ to be filed later: text rendered to DOCX/PDF, a base64 file, or a link, with a note and hintsRead and write key
POST/api/v1/canvas/{id}/fileFile an item from Claude to HQ onto a company, deal, contract or employee as a kind of documentRead and write key
DELETE/api/v1/canvas/{id}Discard an item from Claude to HQ without filing itRead and write key
GET/api/v1/moneyMoney summary for a yearRead key
GET/api/v1/dueWhat needs attention: contracts and employee agreements ending within 60 days (or past their end while still open), and documents sent for signature waiting 7 days or moreRead key
POST/api/v1/activitiesLog an activity (note, email, call, meeting, linkedin) against a contact or companyRead and write key
GET/api/v1/boardsMy Workbench boards (those I'm on; all of them for an HQ admin), each with its lists, labels and the names of its members: use it first, to find the board and list a card goes onRead key
GET/api/v1/boards/{id}One Workbench board with its open cards (title, list, due date, labels, members, source), to check whether a card is already there before making oneRead key
POST/api/v1/cardsMake a card on a Workbench board, at the foot of a list, with labels and people by name and where it came from (source). A card with the same source is returned as it is, with existing: true and status 200Read and write key
POST/api/v1/cards/{id}/commentsAdd a comment to a Workbench card (for a card that is already there: say what is new, with the email's link)Read and write key
GET/api/v1/cardsFind Workbench cards across my boards: by words, board, list, client, label, person, due date or the email they came from (sourceRef). Use it before making a card, so news on an existing item goes onto its cardRead key
GET/api/v1/cards/{id}One Workbench card in full: its description, checklist, comments, attachments, people, labels, client and the contract or deal it is linked toRead key
GET/api/v1/my-cardsThe open Workbench cards I'm on across my boards, overdue first, then today, this week, later and those with no dateRead key
PATCH/api/v1/cards/{id}Change a Workbench card: title, description (replace, or appendDescription to add an update), due date, complete, archived, client, labels and people added or taken off by name, and its contract or dealRead and write key
POST/api/v1/cards/{id}/moveMove a Workbench card to another list on its board (by listId or the list's name), at the top or the bottomRead and write key
POST/api/v1/cards/{id}/checklistAdd items to a Workbench card's checklist, one action eachRead and write key
PATCH/api/v1/checklist-items/{id}Tick or untick a checklist item, or reword itRead and write key
DELETE/api/v1/checklist-items/{id}Take an item off a card's checklistRead and write key
POST/api/v1/cards/{id}/attachmentsAttach a link (the Gmail thread, a Drive file) or a file (an email's attachment, base64) to a Workbench cardRead and write key
GET/api/v1/attachments/{id}/textThe words inside a file on a Workbench card (PDF, Word, PowerPoint, Excel, text), to summarise itRead key
POST/api/v1/boards/{id}/listsAdd a list at the right-hand end of a Workbench board (Waiting on client, This week, …)Read and write key
POST/api/v1/boardsMake a Workbench board, with the lists To do, Doing and Done, under a business and for a client; I am its first memberRead and write key
GET/api/v1/vault/sectionsThe Document Vault sections Claude may use: those I'm on that someone on them has switched on for Claude (the section's menu: Let Claude use this section), with their columns and how many rows each holds. Any other section, private or shared, is not thereRead key
GET/api/v1/vault/searchSearch the Vault sections Claude may use: section and row names, values, notes, file names and the words inside files (PDF, Word, PowerPoint, Excel, text); a number finds itself with or without its spacesRead key
GET/api/v1/vault/sections/{id}One Vault section Claude may use: its columns, and its rows with their values by column name (q narrows them)Read key
GET/api/v1/vault/rows/{id}One Vault row in full: its values by column name, its notes as Markdown, and its files and linksRead key
GET/api/v1/vault/files/{id}/textThe words inside a file on a Vault row (PDF, Word, PowerPoint, Excel, text), to answer from it or summarise itRead key
POST/api/v1/vault/sections/{id}/rowsAdd a row to a Vault section Claude may use: its name, values by column name, and notes in MarkdownRead and write key
PATCH/api/v1/vault/rows/{id}Change a Vault row: its name, values by column name, its notes (replace, or appendNotes to add without losing them), or archived (to the Trash, which can be restored)Read and write key
POST/api/v1/vault/rows/{id}/filesAttach a link or a file (base64, up to 15 MB) to a Files column of a Vault rowRead and write key
POST/api/v1/vault/sections/{id}/columnsAdd a column to a Vault section Claude may use: its name, what it holds, and a select or tags column's optionsRead and write key
POST/api/v1/vault/sectionsMake a Vault section (private if asked) with its columns; Claude may use it from the startRead and write key
GET/api/v1/enquiriesThe website enquiries, newest first: what the contact form sent, its status, and the deal each one made. The POST route is the website's own intakeRead key
POST/api/v1/enquiriesReceive an enquiry from the handee.co.za contact form: stored first, then matched to a contact and company, with a note and a Qualifying deal in the Deal pipeline. Spam and repeats are stored too and still answered 201; a repeated Idempotency-Key gets the first answer backIntake or read and write key
GET/api/v1/xeroThe Xero connection: whether the app is configured here, which organisation is connected, and who connected itRead key
GET/api/v1/xero/moneyThe business at a glance, live from Xero: invoiced this month and this year, outstanding, overdue, and who owes whatRead key
GET/api/v1/xero/contactsFind the Xero customer behind a client: matched on the name, the registration number and (with companyId) the client's email domains — Xero's own filters cannot match 'Bluenorth' to 'Blue North Sustainability Pty Ltd'Read key
POST/api/v1/companies/{id}/xero-contactLink a client to an existing Xero customer (a contactId from /xero/contacts)Read and write key
POST/api/v1/companies/{id}/xero-contact/createCreate the customer in Xero from the client's own details (legal name, registration number, VAT, billing email, address) and link itRead and write key
GET/api/v1/companies/{id}/xero-invoicesThe client's invoices as the CRM has them, newest first; sync=1 pulls their whole Xero history in first (every status, ours or not)Read key
POST/api/v1/companies/{id}/xero-invoicesRaise an invoice in Xero as a DRAFT from an approved timesheet or a contract's month: the lines are the caller's, the org's account and standard-rate VAT are applied, and one draft is kept per source per periodRead and write key
GET/api/v1/companies/{id}/appsA client's external systems: their Jira, Confluence, GitHub, the Faster Fixes project, anything else storedRead key
POST/api/v1/companies/{id}/appsAdd one link to a client's external apps (a pasted address without a scheme gets https://)Read and write key
DELETE/api/v1/companies/{id}/apps/{appId}Remove one of a client's external appsRead and write key
GET/api/v1/companies/{id}/portal-usersWho can sign in for this client: their billing switch (see the client's invoices in the portal) and their Faster Fixes reviewer link (masked)Read key
POST/api/v1/companies/{id}/portal-usersGive a person portal access: an invitation for a new address, a link for one that already signs in as a clientRead and write key
PATCH/api/v1/companies/{id}/portal-users/{linkId}Set a person's portal switches: billing (see invoices), or their Faster Fixes reviewer link (a pasted link or token; an empty string clears it)Read and write key
DELETE/api/v1/companies/{id}/portal-users/{linkId}Take a person's portal access away: their sign-in stays, and their reviewer link goes with the accessRead and write key