Question:
I'd like to use the REST API but can't find any documentation on how to authenticate with an account that's using SAML authentication against Microsoft 365. It's not mentioned anywhere in the
Helpdesk API docs. If it's possible, can you please send me a link to the documentation?
Answer:
Yes, this is possible. We've recently introduced token-based authentication for the API.
After a user has signed in via SAML, open the helpdesk app and go to "[helpdesk-url] /User/Token" in your browser. You'll see your auth token.
Pass this token when calling API methods in the "Authorization" header like this:
Authorization: bearer [token]
And it should work.