Skip to main content

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​

ScopeAllows
customers:read, customers:writeThe pro's customers.
jobs:read, jobs:writeThe pro's jobs and their photos.
estimates:read, estimates:writeEstimates, invoices, receipts and mileage. Drafts only on write.
schedule:read, schedule:writeHours, appointments and block-offs.
messages:read, messages:writeConversations and messages.
reviews:readThe connected Google reviews.
social:read, social:writeProfile, feed, reactions, connections and referrals.

Conventions​

  • Lists come newest first as {object: "list", data, has_more}. Send starting_after with 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_ and ref_.
  • Every POST takes an optional Idempotency-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.