API reference
Every endpoint, field and example.
Print this section · every page on one document
Tutorials
- Change a job's statusSend the status name to PATCH /jobs/{id}/status. Take valid names from /job-lookups.
- Create a job and book a visit from your own systemFind or create the contact, create the job, then schedule a visit for a technician.
- Push leads from your website into SkedulerSend a web form to your own server, then create the contact and a job through the API.
- Read a job's notesGet the notes on a job's Notes tab with GET /jobs/{id}/notes. Your app needs read:jobs and read:notes. Keep a copy up to date with sync mode.
- Read technicians' leave and time blocksList the time blocks (leave included) and tasks on your technicians' schedule with GET /schedule-blocks, for one technician or a date range.
- Record a payment on an invoiceRecord money received outside Skeduler against an issued invoice. Nothing is charged.
Reference
- API referenceEvery endpoint in the Skeduler API v1, with the scope it needs, its parameters, and example requests and responses.
- Authentication API1 endpoint for authentication: exchange client credentials for an access token.
- Contacts API4 endpoints for contacts: list contacts; create a contact; get a contact; update a contact.
- Credit Notes API2 endpoints for credit notes: list credit notes; get a credit note.
- Customers API2 endpoints for customers: list customers; get a customer.
- Estimates API3 endpoints for estimates: list estimates; create a draft estimate on a job; get an estimate.
- Invoices API3 endpoints for invoices: list invoices; create an invoice on a job, as a draft or issued; get an invoice.
- Jobs API7 endpoints for jobs: list jobs; create a job; the ids the job, estimate and invoice writes take; get a job; edit a job's details; list a job's notes; and more.
- Payments API3 endpoints for payments: record a manual payment on an invoice; list payments; get a payment.
- Schedule blocks API2 endpoints for schedule blocks: list schedule blocks; get one schedule block.
- Technicians API2 endpoints for technicians: list technicians; get one technician.
- Visits API5 endpoints for visits: list visits; schedule a visit on a job; get a visit; reschedule, reassign or re-dispatch a visit; cancel (archive) a visit.
- Webhooks API4 endpoints for webhooks: list this app's subscriptions; subscribe a url to an event; get one of this app's subscriptions; unsubscribe.
Questions about aPI reference
Customers or contacts, which endpoint do I use?
They read the same records, in two views with their own scopes.
Compare /customers/contactsScope read:customersread:contacts, andwrite:contactsto changeFields name,email,phone,address,notesfirst_name,last_name,company_name,job_title,email,billing_email, the phone numbers,preferred_contact_method,address,notesCreate or update No POST /contacts,PATCH /contacts/{id}Search None (paging and sync only) email,phoneandsearchnarrow the listUse
/contactsto find, create and update people. Use/customerswhen you only need a name, email, phone and address.A job's
customer_idis the id of this record, so a contact you create can be used straight away when you create a job. Find a contact before creating one:GET /contacts?email=…. See Create a job and book a visit.Find a contact by email
To find a contact before you create one, filter
/contactsbyemail.$SKEDULER_APIis your Skeduler API address, and in the JavaScript and PHP tabs the same names in capitals are variables you set.curl
curl -s "$SKEDULER_API/api/v1/contacts?email=sam@example.com" \ -H "Authorization: Bearer $ACCESS_TOKEN"JavaScript (fetch)
const res = await fetch(`${SKEDULER_API}/api/v1/contacts?email=sam@example.com`, { headers: { Authorization: `Bearer ${ACCESS_TOKEN}`, }, }); const data = await res.json();PHP (Guzzle)
$client = new \GuzzleHttp\Client(); $res = $client->request('GET', "$SKEDULER_API/api/v1/contacts?email=sam@example.com", [ 'headers' => [ 'Authorization' => "Bearer $ACCESS_TOKEN", ], ]); $data = json_decode((string) $res->getBody(), true);The answer lists matching contacts in
Open “Customers or contacts, which endpoint do I use?” on its own pagedata. If it's empty, create the contact withPOST /contacts.