OMS Course Search API
Find the right OMS course from a plain-English question
Send a customer's question. Get back a short answer, matching OMS courses with upcoming dates, prices and booking links, and related OMS articles — ready to render.
Quickstart
Make your first search in two minutes.
Interactive demo
Try real searches and inspect the JSON.
WordPress / PHP
Drop-in server-side integration.
How it works
- Your server sends
POST https://oms-api.mainconsulting.co.uk/api/public/v1/searchwith the visitor's question and your secret API key. - OMS interprets the question (topic, location, dates, budget, online or in person) and searches the live OMS catalogue.
- You receive structured JSON: an answer, courses with their upcoming events, and supporting content.
Your first request
curl https://oms-api.mainconsulting.co.uk/api/public/v1/search \
-H "Authorization: Bearer $OMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "I need first aid training for my staff."}'Where the data comes from
- Courses, dates, prices, locations, booking status and booking links come from OMS's booking system (Arlo), refreshed daily. They are passed through exactly; the AI never writes them.
- Articles and case studies come from the OMS website. They are supporting reading, never a source of course facts.
- The
answerand per-coursereasontext are AI-written and checked automatically: they cannot introduce prices, place counts or accreditation guarantees that aren't in the data.
Key facts
- Base URL:
https://oms-api.mainconsulting.co.uk/api/public/v1 - One endpoint:
POST /search, JSON in and out, UTF-8. - Authentication:
Authorization: Bearer oms_live_…, server-side only. - Typical response time: 4–8 seconds. Show a loading state.