Skip to content
Support

Create a job and book a visit from your own system

Owner, AdminLast checked 25 November 20264 min readArticle ID: developers-create-job-and-visit
On this page

Find or create the contact, create the job, then schedule a visit for a technician.

Your app needs the scopes read:contacts, write:contacts, write:jobs, read:technicians and write:visits. In the examples, $SKEDULER_API is your Skeduler API address. Contact Skeduler support if you don't have it. In the JavaScript and PHP tabs, the same names in capitals (SKEDULER_API, ACCESS_TOKEN and so on) are variables you set.

Who can do this: Owners and Admins with the Manage Developer Tools permission.

Send a fresh Idempotency-Key on each write, and the same key when you retry it. See Safe retries.

1. Find or create the contact

curl

curl -s "$SKEDULER_API/api/v1/contacts?email=sam@example.com" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

If data is empty, create one:

curl

curl -s -X POST "$SKEDULER_API/api/v1/contacts" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
  -d '{"first_name":"Sam","last_name":"Rivera","email":"sam@example.com","mobile_phone":"0400 000 000"}'

Keep the contact's id.

2. Create the job

curl

curl -s -X POST "$SKEDULER_API/api/v1/jobs" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
  -d '{"title":"Hot water system replacement","customer_id":"<contact id>","address_line_1":"1 Example St","city":"Sydney","state":"NSW","postal_code":"2000"}'

Only title is required. To set a status, priority, lead source or call-out fee, take their ids from GET /job-lookups (it needs read:jobs). If you leave the status out, the default is used. Keep the job's id.

3. Pick a technician

curl

curl -s "$SKEDULER_API/api/v1/technicians" -H "Authorization: Bearer $ACCESS_TOKEN"

The list has your active technicians, ordered by name, and every id in it can take a visit. Deactivated technicians are left out. Send include_inactive=true only when you need them too, for example to show who did older visits: they come back with "active": false. Pick the technician for a visit from the default list only.

To check a technician's time off before you pick a time, read their leave and time blocks. See Read technicians' leave and time blocks.

4. Schedule the visit

curl

curl -s -X POST "$SKEDULER_API/api/v1/visits" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
  -d '{"job_id":"<job id>","technician_id":"<technician id>","start_at":"2026-12-01T09:00:00+11:00","end_at":"2026-12-01T11:00:00+11:00","dispatch":true}'
  • Times need a UTC offset (or Z). end_at must be after start_at.
  • "dispatch": true sends the visit to the technician's list now. It never changes the visit's status.
  • Leave technician_id out for an unassigned visit.
  • The technician must be a current team member without blocked time (such as leave) in that window, or the call is refused. See My request fails with validation_failed.

The new job and visit show in the Skeduler app straight away.

In this section