Skip to content
List Chats logo

List Chats

Retrieve the list of chats that the user is part of using the Microsoft Teams API.

SKILL.md

Full skill instructions

List Chats

Retrieve the list of chats that the user is part of using the Microsoft Teams API.

API Details

  • API Name: Microsoft Teams API
  • OpenAPI Ref: ../​../​openapi/​microsoft-teams-openapi.yaml
  • Endpoint: GET /​chats
  • operationId: listChats
  • Tag: Chats

Sandbox

  • Base URL: http://localhost:8080/​rest/​microsoft-teams-api/​1.0.0

Required Headers

  • Authorization: Bearer {access_token}

OAuth Scopes

  • Chat.Read

Parameters

Query Parameters

NameTypeRequiredDescription
$topintegerNoThe number of results to return
$filterstringNoOData filter expression
$expandstringNoOData expand expression
$orderbystringNoOData order by expression

Example Request

curl -X GET "http://localhost:8080/​rest/​microsoft-teams-api/​1.0.0/​chats" \
  -H "Authorization: Bearer {access_token}"

Example Response

{
  "value": [
    {
      "id": "19:[email protected]",
      "topic": "Project Discussion",
      "chatType": "group",
      "createdDateTime": "2025-01-15T09:00:00Z"
    },
    {
      "id": "19:[email protected]",
      "topic": null,
      "chatType": "oneOnOne",
      "createdDateTime": "2025-01-10T08:00:00Z"
    }
  ]
}

Instructions

  1. Obtain a valid access token with the Chat.Read scope.
  2. Send a GET request to the endpoint.
  3. Optionally include $top, $filter, $expand, or $orderby query parameters to refine results.
  4. Parse the response to retrieve the list of chats.