Skip to content

REST API

The GetHubService API lets your own software, or tools like Zapier, read your leads, enquiries, products, orders and bookings, and add or update leads.

Base URL: https://api.gethubservice.com/api/open/v1

  1. Open Dashboard → API & Webhooks.
  2. Type a name for the key (for example “Zapier”) and choose Read only or Read & write.
  3. Click Create key and copy it now. It starts with ghs_live_ and is shown only once.

Send the key in the Authorization header (or X-Api-Key).

Terminal window
curl "https://api.gethubservice.com/api/open/v1/leads?limit=25" \
-H "Authorization: Bearer ghs_live_YOUR_KEY"
Method Path Key needed What it does
GET /me Read Your business and this key
GET /leads Read Leads, newest first. Filter with ?status=
GET /leads/:id Read One lead
POST /leads Read & write Add a lead
PATCH /leads/:id Read & write Change status, add a note, set the follow-up date
GET /enquiries Read Website contact form messages
GET /products Read Your products
GET /orders Read Orders
GET /bookings Read Bookings and appointments

Lead statuses: new, contacted, qualified, proposal, won, lost.

Terminal window
curl -X POST "https://api.gethubservice.com/api/open/v1/leads" \
-H "Authorization: Bearer ghs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Priya","phone":"9876543210","message":"Bridal makeup on 12 Dec","source":"website"}'

name is required, plus email or phone. Optional: company, message, source, interestedIn (list of text).

Sources: website, contact_form, ai_assistant, whatsapp, phone, walk_in, social_media, referral, advertising, direct, other.

Terminal window
curl -X PATCH "https://api.gethubservice.com/api/open/v1/leads/LEAD_ID" \
-H "Authorization: Bearer ghs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"contacted","note":"Called, will visit Saturday","nextFollowUpDate":"2026-12-06"}'

Lists return up to 25 items by default (?limit= up to 100) and a nextCursor. Pass it as ?cursor= to get the next page. When nextCursor is null, you have everything.

  • Up to 600 requests a minute per key.
  • Errors return { "success": false, "message": "..." } with a status code: 400 bad input, 401 missing or wrong key, 403 read key used for a write, 404 not found, 429 too many requests.

Want to be told when something happens instead of asking? Use webhooks.