Request for Documentation on Error Object in /teams/v3/conversations API

石川 敦己 235 Reputation points
2025-02-04T09:20:09.5233333+00:00

Hello,

I'm looking for documentation describing the error object returned by /teams/v3/conversations. When making the following request to retrieve a conversation ID, it returns an error if the target user hasn’t installed the app. I understand this is expected behavior, and I’m currently considering how to handle it. Here is the request:

curl -X POST "https://smba.trafficmanager.net/teams/v3/conversations" \
     -H "Authorization: Bearer ACCESS_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
         "bot": {
           "id": "BOT ID",
           "name": "BOT NAME"
         },
         "members": [
           {
             "id": "USER ID"
           }
         ],
         "channelData": {
           "tenant": {
             "id": "TENANT ID"
           }
         }
     }'

Upon testing, I received the following error as expected:

{
    "error": {
        "code": "BadArgument",
        "message": "Bot is not installed in user's personal scope"
    }
}

I plan to implement error handling based on this object, but I'd prefer to refer to official documentation if it exists. I checked this document but couldn’t find details about this specific error object.

Does documentation for this error object exist? If so, could you please share the link?

Thank you.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,558 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nivedipa-MSFT 3,326 Reputation points Microsoft Vendor
    2025-02-04T15:36:35.1333333+00:00

    @石川 敦己 - Thank you for bringing this issue to our attention.
    Currently, there isn't a specific document available for on Error Object in /teams/v3/conversations API.

    Thanks, 

    Nivedipa 

    -------------------------------------------------------------------------------------------------------

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.