Business API
The Business API reads and changes a pro's own business: customers, jobs, the calendar, conversations, reviews and the social network. It lives on the same host as the Estimate API, https://api.wfskills.com/v1. No call spends credits, and X-Credits-Used is always 0.
Two ways in
- The pro's own key. A pro makes it in the contractor portal under Developer, and picks the modules it reaches. It starts with
hw_live_. - An app's OAuth token. A developer's app asks the pro for consent, and acts for that pro with the scopes the pro granted. See OAuth 2.0.
The credential decides who the call acts for. A body never names the pro or the company.
Scopes
| Scope | Allows |
|---|---|
customers:read, customers:write | The pro's customers. |
jobs:read, jobs:write | The pro's jobs and their photos. |
estimates:read, estimates:write | Estimates, invoices, receipts and mileage. Drafts only on write. |
schedule:read, schedule:write | Hours, appointments and block-offs. |
messages:read, messages:write | Conversations and messages. |
reviews:read | The connected Google reviews. |
social:read, social:write | Profile, feed, reactions, connections and referrals. |
Conventions
- Lists come newest first as
{object: "list", data, has_more}. Sendstarting_afterwith the last id to read the next page. - Times are ISO 8601 with the offset of the company's time zone. A time without an offset is read in that zone.
- Money is in cents, with its currency.
- Ids carry a prefix:
cus_,job_,cest_,inv_,rcp_,mil_,apt_,blk_,thr_,msg_,post_,con_andref_. - Every
POSTtakes an optionalIdempotency-Key. With it, a repeated request returns the first answer. - Errors follow RFC 9457, like the rest of the API. See Errors.
A first call
curl https://api.wfskills.com/v1/jobs \
-H "Authorization: Bearer $HOMETOWN_BUSINESS_KEY"
/v1/customers serves both APIs. With a business key it answers with the pro's customers; with an Estimate API key it serves the Records add-on.