API Endpoint to Retrieve All Services

Originally posted by miko

Hi ServiceM8 team,

I’d like to know if there’s an available API endpoint that allows retrieving all Services (as shown in the Services section of the web app). I’ve checked the API documentation but couldn’t find a reference to it.

Could you please confirm if such an endpoint exists, or if there’s an alternative way to access this data programmatically?

Thank you,

Hi miko,

There isn’t a specific “Services” endpoint in the ServiceM8 API, but you can access similar data through the Categories endpoint.

The /category.json endpoint allows you to retrieve all job categories, which are used to classify and organize jobs. This is likely the closest equivalent to what you’re seeing in the Services section of the web app, as categories serve to organize different types of services your business offers.

Here’s what you can do:

  1. Use the Categories endpoint: GET https://api.servicem8.com/api_1.0/category.json

    • Requires read_job_categories OAuth scope
      • Returns category name, colour, UUID, and other metadata
  2. Alternative data sources:

    • Materials endpoint (/material.json) - if your “services” are actually materials, products, or labour rates
      • Custom Fields - you might be able to create custom service-related fields if needed

The Categories endpoint supports filtering, so you can refine your results as needed. Each category has fields like “name” for identification and “colour” for visual organization on the dispatch board.

Could you clarify what specific data you’re looking for in the “Services section”? This would help us point you to the most appropriate endpoint.

Thanks,
Cody