I’ve just been trying to make my first API call using Postman. I thought I’d start with an easy one of just running a
GET /Api/V1/Presentations
However, when I run the call, I get the following response: ‘AuthFailureAsError’. I’m providing my API key in the call so I’m not sure what I’m doing wrong. I’ve attached a picture if it helps.
2 Likes
Hi Lukas, welcome to the community! 
Good news… this is a really common first hurdle, and it’s a quick fix.
The AuthFailureAsError / Unauthorized response you’re seeing is because the Mediasite API requires two things on every call, not just one:
- Your API Key = passed as a header (sfapikey)
- Basic Authentication = username and password of a Mediasite user account that has API permissions on your platform
A lot of people (understandably!) assume the API key alone is enough, since that’s how plenty of other APIs work. But Mediasite uses the API key to identify which integration is making the call, and Basic Auth to identify which user is making it.
You can see a screenshot from my Postman setup below showing ‘Basic Auth’ selected in the Authorization section. You can also set this at the environmental level in Postman which might save you some time later on.
One thing worth flagging: the account you use needs to explicitly have API access granted to it. If you’ve confirmed Basic Auth is set correctly and you’re still getting the same error, that’s the next thing to check with whoever manages roles on your Mediasite platform.
Once that’s in place, your GET /Api/V1/Presentations call should return your presentation list straight away.
Let us know how you get on!
Nathan — The Mediasite Team
1 Like