Microsoft Teams API: what you can do and how to use it with AI agents
Microsoft Teams is reached through Microsoft Graph, for teams, channels, messages, chats and meetings, and through the Bot Framework for conversations with bots. IT staff and developers at Microsoft 365 companies use it. Access is through an application registered in Microsoft Entra ID, with administrator consent.
What the Microsoft Teams API offers
Teams and channels
Creating, members and settings of teams and channels.
Channel messages
Reading and sending messages and replies.
Chats
One-to-one and group conversations.
Online meetings
Creating meetings and reaching transcripts, depending on permissions.
Bots and apps
A bot that talks to users and appears as an app in Teams.
Change notifications
Subscriptions to new messages and changes.
How to access the Microsoft Teams API
- With your company’s credentialsOAuth 2.0 with an app registered in Microsoft Entra ID, with delegated or application permissions and administrator consent. Bots use the Bot Framework with the same registration.
- Some messaging APIs need special permissions or have their own licensing.
- Graph applies request throttling.
- Internal messages can hold sensitive data, so limit access by channel.
Official documentation: learn.microsoft.com/graph/teams-concept-overview
What an iTeam agent does with the Microsoft Teams API
Agent in the department channel
The finance agent answers questions about payments in the team channel, checking the ERP.
Approval in Teams
When a process needs approval, the manager gets the message in Teams and approves or declines right there.
Meeting summary
With the transcript enabled, the agent summarizes the meeting and posts the decisions and tasks in the project channel.
Project team created
At the start of a project, the agent creates the team and the standard channels, and adds the members.
From the credential to the agent at work, with approval
Register the app in Entra ID
IT creates the application with minimal permissions and publishes the iTeam bot in the organization's catalog.
Connect it in iTeam
Credentials stay in the vault, and each agent works only in the channels and chats it was added to.
Test with approval
Start in a pilot channel. Creating teams and mass messages go through approval.
Ready-made AI teams that use Microsoft Teams
Questions about the Microsoft Teams API
Is the Microsoft Teams API free?
In general, Graph is part of Microsoft 365. Some message export APIs may carry charges or require a license.
Do I need to code to use the Microsoft Teams API with iTeam?
Not necessarily. Teams is a native iTeam channel, and the deployment team sets up the app with your IT.
Does the agent read all conversations?
No. It works in the channels and chats it was added to, with the permissions IT approves.