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. Create an API key
Section titled “1. Create an API key”- Open Dashboard → API & Webhooks.
- Type a name for the key (for example “Zapier”) and choose Read only or Read & write.
- Click Create key and copy it now. It starts with
ghs_live_and is shown only once.
public/screenshots/developers/api-keys.png2. Make a request
Section titled “2. Make a request”Send the key in the Authorization header (or X-Api-Key).
curl "https://api.gethubservice.com/api/open/v1/leads?limit=25" \ -H "Authorization: Bearer ghs_live_YOUR_KEY"const res = await fetch('https://api.gethubservice.com/api/open/v1/leads?limit=25', { headers: { Authorization: `Bearer ${process.env.GHS_KEY}` },});const { data, nextCursor } = await res.json();Endpoints
Section titled “Endpoints”| 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.
Add a lead
Section titled “Add a lead”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.
Update a lead
Section titled “Update a lead”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"}'Pages of results
Section titled “Pages of results”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.
Limits and errors
Section titled “Limits and errors”- Up to 600 requests a minute per key.
- Errors return
{ "success": false, "message": "..." }with a status code:400bad input,401missing or wrong key,403read key used for a write,404not found,429too many requests.
Want to be told when something happens instead of asking? Use webhooks.