# Connecting Graph API from Microsoft

**URL:** <https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902>\
**Category:** Need help\
**Created:** [May 17, 2025, 2:41am UTC](https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902 "2025-05-17T02:41:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.cooray](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mark.cooray](https://forum.bubble.io/u/mark.cooray)\
**Post date:** [May 17, 2025, 2:41am UTC](https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902/1 "2025-05-17T02:41:22Z")

</div>

I am registering a multi-tenant app with the scope Mail.ReadWrite - Mail.Send - User.Read and offline\_access

When Bubble API connector is created and When I try to initialise the API call following error comes up:

Raw response for the API  
Status code 401  
{“error”:{“code”:“InvalidAuthenticationToken”,“message”:“IDX14100: JWT is not well formed, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format. (JWS): ‘EncodedHeader.EncodedPayload.EncodedSignature’. (JWE): ‘EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag’.”,“innerError”:{“date”:“2025-05-17T02:37:41”,“request-id”:“aaf2bcb1-3676-45ed-957b-e8f9fdd92b06”,“client-request-id”:“aaf2bcb1-3676-45ed-957b-e8f9fdd92b06”}}}  
Screen of the API Connector

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/c/7c6fd7d6c2c8a7054548b7552477d6433728eaa8.png)

Screen of the API Call:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/9/19fe891751b5c8f2145dd243d25d01a664d3644c.png)

Help is much appreciated

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 17, 2025, 2:47am UTC](https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902/2 "2025-05-17T02:47:42Z")

</div>

Remove the authorization Bearer because this is added by Bubble auth section automatically.

Be sure to initialize your auth using the login with social network action in debug\_mode before initializing your API call.

In auth section, select the uthentication goes in the header (you should also enable the add access type offline checkbox)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 17, 2025, 2:48am UTC](https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902/3 "2025-05-17T02:48:13Z")

</div>

Take time to search forum before posting, there’s already a lot of topic about how to set MS graph API user-agent flow

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 26, 2025, 2:42am UTC](https://forum.bubble.io/t/connecting-graph-api-from-microsoft/369902/4 "2025-07-26T02:42:00Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
