External routine-service booking and enquiry follow-up: supported API approach?

I’m assessing a narrowly scoped integration for a domestic heating business.
ServiceM8 Support has confirmed that Phone Agent can submit a Simple Online Enquiry to the Inbox, but Inbox messages cannot be assigned to a responsible staff member and have no automatic follow-up notifications.
Before building, I would like to establish two supported integration paths.
A. Enquiry lifecycle

  1. Can an external integration retrieve Simple Online Enquiry submissions using an API or webhook, with a stable unique identifier?
  2. Can it detect conversion to a job and retrieve the associated job UUID?
  3. Can it distinguish an unresolved enquiry from one that has been replied to, dismissed or otherwise dealt with?
  4. What remains accessible after a converted message leaves the Inbox after 24–48 hours?
    B. Confirmed appointment creation
  5. Is creating a Job and scheduled Job Activity the supported way for an external integration to create an appointment visible in the normal schedule?
  6. Which interfaces expose the availability and unavailable time needed to offer a suitable appointment?
  7. Is there a supported way to prevent competing bookings taking the same staff/time slot?
  8. Do API-created scheduled activities trigger Booking Confirmation automation?
    The initial scope would be one pre-approved routine service, with agreed duration, service area and eligible engineers—not emergency dispatch or technical diagnosis.
    Please identify the relevant endpoints/events, limitations and test-account requirements. I am looking to verify the supported behaviour before committing to implementation.

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

Hi Cody,

Thanks—that clarifies the supported building blocks and the booking limitations.

To keep the initial scope manageable, I’m planning to test enquiry tracking and internal follow-up first, with appointment decisions remaining with the business. Automated scheduling and customer confirmations would stay outside that initial scope.

For that test, could you confirm the outstanding points when the team has reviewed them?

  • After a message is removed from the visible Inbox after the 24–48-hour period described, does it remain retrievable through the API, including its lifecycle fields and converted_to_job_uuid? If so, for how long?
  • Do Phone Agent submissions create Inbox messages accessible through the same endpoints and inbox.message_received event? Is there a reliable field identifying their source?
  • What is the simplest supported test-account setup for exercising those enquiry paths, and which features need enabling?

I’ll review the Platform Policy before implementation. Availability mapping and automated booking can wait until the enquiry-tracking path has been tested.

Thanks,
Junaid

Hi Junaid,
For the enquiry-only test, the supported setup steps are:

  1. Connect the integration. For a single-account integration, you can create an API key under Settings > API Keys and send it in the X-API-Key header; a Developer account isn’t required for that route.
  2. Enable the enquiry path. The Inbox must be enabled for the list endpoint. Activate Simple Online Enquiry under Account > Features & Integrations, then submit an enquiry through the form. Those submissions arrive in the ServiceM8 Inbox.
  3. Read the test message. Use GET /api_1.0/inboxmessage.json and GET /api_1.0/inboxmessage/{uuid}.json. Both support API-key authentication, or OAuth with read_inbox. The message fields include uuid, read_timestamp, last_reply_timestamp, is_archived, archived_timestamp and converted_to_job_uuid.
  4. Exercise Phone Agent separately. Phone Agent has a Test Call function under Account > Settings > ServiceM8 Phone > ServiceM8 Phone Agent > Settings. Its test scenarios explicitly include submitting an Online Booking on the caller’s behalf.
    We’ll confirm with the team whether messages remain API-retrievable after the visible Inbox removal you describe, including their lifecycle fields and converted_to_job_uuid and for how long; whether Phone Agent submissions use the same Inbox endpoints and inbox.message_received event and have a reliable source identifier; and the simplest test-account provisioning route and feature-access requirements for both enquiry paths.
    Thanks,
    Cody