Hi Junaid,
Yes, the supported building blocks are the Inbox API for enquiry tracking and a Job plus a scheduled Job Activity for a confirmed appointment, with some important limits around lifecycle events and booking guarantees.
A. Enquiry lifecycle
1. Retrieval and identification
Simple Online Enquiry submissions arrive in the Inbox. Use GET /api_1.0/inboxmessage.json to list messages and GET /api_1.0/inboxmessage/{uuid}.json to retrieve a specific message. Each message exposes a uuid; both endpoints require read_inbox when using OAuth.
The list endpoint uses limit and offset pagination, with limit up to 500. Its filter parameter accepts all, unread, archived or snoozed, rather than the REST $filter syntax.
For new arrivals, subscribe to inbox.message_received through POST https://api.servicem8.com/webhook_subscriptions/event.
2. Conversion to a job
Inbox records expose converted_to_job_uuid. Poll the tracked message to read that association, then retrieve the job through GET /api_1.0/job/{uuid}.json with read_jobs.
If your integration performs the conversion, POST /api_1.0/inboxmessage/{uuid}/convert-to-job.json requires publish_inbox and returns the new UUID as job.uuid.
There isn’t a dedicated Inbox conversion or reply/archive webhook. job.created is available, but use the Inbox association field to link an enquiry to its job.
3. Replied to, dismissed or unresolved
The available signals include last_reply_timestamp, read_timestamp, is_archived, archived_timestamp, snooze_until_timestamp and converted_to_job_uuid.
There isn’t a single enquiry-resolution status covering “otherwise dealt with”. For your integration, we’d recommend defining an explicit follow-up rule using those signals, rather than treating “read” as “resolved”.
4. After conversion
For Simple Online Enquiries, the submitted information is pre-filled into the Job Card and any submitted photos/documents are added to the Job Diary. The associated job has its own retrieval endpoint.
B. Confirmed appointment creation
5. Creating a scheduled appointment
Yes. A scheduled booking is a JobActivity with activity_was_scheduled set to 1.
The supported sequence is:
- Create the job with
POST /api_1.0/job.json, requiring create_jobs for OAuth. status is required; Work Order is one supported value. The new UUID is returned in x-record-uuid.
- Create its booking with
POST /api_1.0/jobactivity.json, requiring manage_schedule, using job_uuid, staff_uuid, start_date, end_date and activity_was_scheduled. Scheduled and recorded activity flags cannot both be true.
6. Availability inputs
The relevant read interfaces are:
All three require read_schedule for OAuth. These expose records rather than a ready-made “find suitable appointment slots” API.
7. Competing bookings
There isn’t an atomic slot-reservation or “create only if this staff/time remains free” endpoint. Job and Job Activity resources are manipulated separately. We recommend rechecking immediately before creation and coordinating bookings made by your integration, but don’t treat that as an account-wide booking lock.
8. Booking Confirmation automation
API-created scheduled activities don’t trigger Booking Confirmation automation. This automation is triggered by bookings made through the app or the New Booking window in the job card, with Send Booking Confirmation enabled.
Authentication and testing
For an integration connecting only this customer’s account, API-key authentication is supported, using X-API-Key; a Developer account isn’t required for that route. OAuth requires Development Partner registration and a Public Application, which can remain unlisted.
The test account needs Inbox enabled for the Inbox endpoint, and Simple Online Enquiry activated to exercise that submission path. Before implementation, also review our Platform Policy.
We’ll confirm with the team the original message’s API accessibility and retention after the 24–48-hour Inbox removal you describe, how Phone Agent submissions are identified and availability records map to working hours/leave/imported unavailable time, and the test-account provisioning and feature-access requirements.
Thanks,
Cody