Graph API - How to create one-on-one chat for two Microsoft users on same tenant

Daniel Dugovic 0 Reputation points
2025-08-05T13:51:20.9333333+00:00

Using https://learn.microsoft.com/en-us/graph/api/chat-post?view=graph-rest-1.0 I am trying to create a one-on-one chat between two Microsoft users on my local domain, so my business can replace our proprietary chat server. Instead, there are various errors serializing or deserializing the request (regardless of whether I use Microsoft's code example or various code examples found across the internet).

If this is possible using Graph API, it would be nice if it could also be possible using Microsoft Graph SDK for Java. (Yesterday I filed a bug on that project's GitHub issue tracker.)

Microsoft Teams | Microsoft Teams for business | Chats | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Phoebe-N 2,055 Reputation points Microsoft External Staff Moderator
    2025-08-05T14:53:44.6466667+00:00

    Hi @Daniel Dugovic Welcome to Q&A community!

    To better understand your situation, could you please clarify if your type of account is for Business/ School or Personal?

    Moreover, please share a screenshot of when "there are various errors serializing or deserializing the request"? It'd be helpful for us to identify what's the root cause.

    In case you are having a Work/ School account and are in an urgent situation with Admin privilege, I recommend submitting a support ticket in the Admin center so Technical Support Specialist can deep dive into your issue and provide with in-time solutions. For detailed instructions on how to get support, please refer to Get support - Microsoft 365 admin.     

    If you’re not the Global Admin within your organization, you can find guidance on locating them here: How do I find my Microsoft 365 admin? - Microsoft Support.    

    For additional assistance, use this link to find the appropriate contact number: Global Customer Service phone numbers - Microsoft Support    

    Looking forward to your response.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.