Ask the Community
Groups
Unable to Generate Access Token to Allow Access to BMS API. - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>Question: </strong>I am unable to generate access token even after following <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fbms.kaseya.com%2Fapi%23bmsapi" rel="noopener nofollow">this</a> guide. I get the below response: </p> <p><em>{ </em><br><em>"error": "unsupported_grant_type" </em><br><em>}</em></p> <p><strong>Resolution: </strong>The error "<em>unsupported_grant_type</em>" is displayed when the <strong><em>grant_type</em></strong> parameter is not specified, or the given value is incorrect. Note that more often than not, this happens when the parameter is part of the URL. See below example, this is incorrect:</p> <p><img src="https://us.v-cdn.net/6032361/uploads/migrated/HYWBPMWB2CGX/mceclip1.png" alt="image" class="embedImage-img importedEmbed-img"></img></p> <p><strong>Note: </strong>Parameters should be passed in the body of the request, not in the URL.</p> <p><strong>For reference: </strong>Below are the screenshots of a setup using postman tool:</p> <p><strong><img src="https://us.v-cdn.net/6032361/uploads/migrated/VPSHWBKYAPD7/mceclip0.png" alt="image" class="embedImage-img importedEmbed-img"></img></strong></p> <p><img src="/attachments/token/k18LlF5VXTqX1aeU10CJJgVL1/?name=inline-1682649293.png" alt="image" class="embedImage-img importedEmbed-img"></img></p> <p><img src="/attachments/token/44RztRjeOgavP9SSg2BS14QjJ/?name=inline-323501995.png" alt="image" class="embedImage-img importedEmbed-img"></img> </p> <p> </p> <p> </p> </article> </main>