Discussions
401 Unauthorized Using API Key on Private ServiceM8 Integration
Hi All,
I’m trying to set up a private integration using the ServiceM8 REST API and an API Key (not OAuth — this is not a public app). I’ve followed all the documentation for private apps and generated a full-access API key from my main business account under Settings → API Keys.
I’m using cURL to test the connection, and here’s what I’ve tried:
curl -u "smk-03554f-11d988b8f54b9272-fc2fa548edf56b29:" https://api.servicem8.com/api_1.0/vendor.json
Also tried:
curl -H "Authorization: Basic $(echo -n 'smk-03554f-11d988b8f54b9272-fc2fa548edf56b29:' | base64)" https://api.servicem8.com/api_1.0/vendor.json
In both cases, the response is:
HTTP/2 401
Authorization Required
The API key is confirmed as active, full access, and created from my primary business account (not the developer portal). I’m not requesting any restricted scopes. I’m following the documentation exactly as described for private apps. I’ve tried different endpoints, same result. ServiceM8 support told me they don’t provide help with private integrations, so I’m turning to the community for help.
Has anyone run into this issue before? Is there a hidden requirement or known issue with API key authentication for private use?
Any insight would be hugely appreciated.
Thanks in advance!