Support
Troubleshooting & versioning
Common problems
401 missing_api_keyHeader must be exactly Authorization: Bearer <key>. Check your server reads the key from config.
Browser shows a CORS errorYou're calling the API from browser JavaScript. Call it from your server instead (see WordPress / PHP).
400 invalid_contextThe token expired (2 hours) or was altered. Send context: null to start a new search.
Results look staleCourse data refreshes daily overnight. Check https://oms-api.mainconsulting.co.uk/api/public/v1/health for the last sync time.
Slow responses4–8 seconds is normal. Use a 30-second client timeout and show a loading state.
Versioning
- The version is in the path:
/api/public/v1/. Breaking changes would ship as/v2/, with notice, while v1 keeps running. - Additive changes (new fields, new enum values) can happen within v1.
api_versionin each response shows the contract date.
Contact
For keys, limit changes or problems, contact your OMS integration contact and include the request_id from the response.