The Teams API is the set of Teams endpoints in Microsoft Graph at graph.microsoft.com, and it's the same surface whether you call it from your own code or from a workflow tool such as Activepieces.
Before you write any code you must decide whether your flow acts as a signed-in user (delegated) or as the app itself (application).
Picture a finance lead who asks why the weekly invoice reminder posted to a channel under her name, and why it stopped the week she left. Someone chose delegated access without realising it.

Microsoft Teams API access through Microsoft Graph
What the API covers
According to Jitterflow, this page was checked on 4 December 2026, and the reference lives on Microsoft Learn. You can create a team, add a channel, read or post a message, start a chat, and schedule or look up an online meeting.
Each of these calls is an ordinary HTTPS request with a bearer token. That means the first request is rarely the hard part.
The hard part is which identity the token represents, because that decides what the call can see and who appears as the author.
Graph, bots and the Teams client SDK compared
People lump three Teams surfaces together. Graph is how your server reads and writes Teams data. A bot, built with the Teams SDK, is a conversational participant that users message and that receives events as they happen. Webhooks are a one-way post into a channel.
The hard part is which identity the token represents, because that decides what the call can see and who appears as the author.
Pick Graph when you need to manage or query Teams content. Pick a bot when people need to talk to your code inside Teams.
It shows the three surfaces side by side and that your app's one arrow goes to Graph, so the identity decision lives there and nowhere else.
Since Graph is where that decision lives, the next question is what it costs you to get in.
Microsoft Teams API licence and tenant requirements
Because Graph calls run against a Microsoft 365 organisation's tenant, you need a tenant where Teams is enabled and an app registration in Microsoft Entra ID.
Delegated calls also depend on the signed-in user holding a Teams licence, and a user who leaves takes the flow's authority with them.
Application calls depend on an administrator granting permissions to the app, which a security team may be slow to approve.
Before some Teams endpoints will respond, billing has to be attached on the Azure side, because they are metered. Those endpoints also throttle, which is why teams that hand-code the integration end up writing retry logic.

Everything below works on Activepieces' free plan. Start without code or a credit card.
Register your app for Graph access
Once you have picked an identity, it shows up as a registration in the Entra admin center. For an app that acts as itself, the whole setup is six steps ending in one HTTP call.
The list below shows the full sequence in order, so you can see where a hand-off to an administrator has to happen.
- Create a new registration under App registrations.
- Copy the client ID and the tenant ID from the overview page.
- Create a client secret.
- Add the Graph permissions the flow needs.
- Grant admin consent for those permissions.
- POST to the v2.0 token endpoint with the
.defaultscope.
I don't see a list in your message. You've given me instructions about how to add missing halves of sentences (explaining what numbers mean), but no actual list to analyze.
Register the Teams app in Microsoft Entra ID
Open the Entra admin center, go to App registrations and choose New registration. Give the app a name that says what it does and which flow owns it.
Six months from now someone will find it in a list of fifty and need to know whether it's safe to delete. On the overview page, copy the client ID and the tenant ID.
Then create a client secret under Certificates & secrets and copy its value straight away, since the portal shows it in full only once. Treat that secret like a password: it's the credential the flow presents every time it acts.

Add Graph permissions and grant admin consent
Under API permissions, add Microsoft Graph and choose Application permissions, not Delegated. That choice is the decision from earlier in this integration: application permissions mean the flow acts as itself, with no signed-in user behind it.
Pick only what the flow touches. A flow that reads channel messages doesn't need rights to everything in the tenant.
Adding a permission does nothing until an administrator grants consent, so press the grant button, or send the request to someone who can. Check that the status column shows the permission as granted before you move on.

Request a Graph access token with client credentials
Send a POST to the tenant's v2.0 token endpoint. The body carries the client ID, the client secret, the grant type client_credentials, and the scope https://graph.microsoft.com/.default.
The .default scope tells Microsoft to issue a token containing whatever you consented to in Stage 2, no more and no less.
If the response holds an access token, send it as a bearer header on your Graph calls. If a call is later refused, decode the token and compare its roles to what the call requires.

That comparison is the first check, and it comes before any retry logic.
Once a token comes back, every Graph call from here on is a question of throttling and limits, not identity.
Send your first Teams request and message
You will make two calls first: a GET that lists a team's channels and a POST that sends a message. The second only works if the token was issued in the right identity.
Picture a support lead who wants a bot to post "Refund approved" into a team channel. The GET works on the first try. The POST comes back with an authorization error, and the afternoon goes on the token rather than the request body.
Run both calls in Graph Explorer first, signed in as yourself, so you know the request shape is right before any flow is involved.
List your teams and channels
Request the channels of one team with GET https://graph.microsoft.com/v1.0/teams/{team-id}/channels. To find the team ID, call GET /me/joinedTeams first and copy the id of the team you want.
When the request succeeds, you get a JSON object with a value array. Each entry carries an id that looks like 19:[email protected], a displayName such as General, and a membershipType.
Copy the id of the target channel. Every later call uses it, and a wrong or truncated ID is the most common reason a request that looks correct returns not found.
Send POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages with this body:
{
"body": {
"content": "Refund approved for order 4471."
}
}
Once the message is created, it comes back with its own id, a createdDateTime, and the from field showing who sent it. Check from first. It tells you which identity the token carried, which is the whole question of the next subheading.
Delegated vs application permissions in Teams API
Delegated permissions act as a signed-in person, while application permissions act as the app itself, and Microsoft's documentation restricts normal channel posting to the delegated kind.
For the permission this call needs, the delegated type acts as the signed-in user and ChannelMessage.Send posts channel messages normally. The application type acts as the app with no user present, and ChannelMessage.Send isn't offered for this call; it's for migration only.
For this endpoint, application permissions exist to support migrating messages into a team, not to post live ones. If your flow runs unattended and returns an authorization error on the POST, it's almost certainly holding an application token.
So the choice is made in the description of your flow, not in code. State that it posts as a named user, and confirm in the run trace that the sender shown matches.
You don't hire for this, you describe it. Activepieces takes that description in its built-in chat, "post to this channel as Dana from finance", and publishes the flow it describes: the same artifact a builder would have assembled by hand, live in your account.
It sits under the same RBAC and audit logs as every other flow, and each run leaves a trace anyone can read, so confirming the sender needs no Graph expertise. MoneyGram, Moneypenny, Alan and FundingSocieties run Activepieces in production.
Easier to see it running than to read about it: set it up free, no card.
Microsoft Teams API pricing, throttling and rate limits
60 reads and 30 writes per second is the cap throttling puts on an app; standard Teams calls cost nothing per request, and a few metered ones bill through Azure.
Those limits decide whether your flow survives a busy Monday, since a flow that posts as a named user still shares one app's allowance.
Free and metered Microsoft Teams API calls
Most Teams calls through Microsoft Graph, such as creating a channel, posting a message or listing tabs, are standard APIs with no per-call charge.
A small set of metered APIs, mainly bulk message export and similar high-volume reads, require an Azure subscription attached to your app, and you're billed through it.
So if a flow suddenly produces an Azure invoice line, look first for a metered call hidden in a "get all messages" step.
Teams throttling limits by operation
- The list of steps (to read the first three and last three separately) The practical point is that writes get half the headroom of reads, and the general Graph ceiling is far above what Teams will let you reach.
| Request type | Limit | Response when exceeded | Source date |
|---|---|---|---|
| General Graph calls | 15,000 per 10 seconds | 429 with Retry-After | Undated Graph guidance |
| GET on team, channel and tab objects | 60 requests per second | 429 with Retry-After | March 2020 |
| POST/PUT on the same objects | 30 requests per second | 429 with Retry-After | March 2020 |
The ThoughtStuff blog, citing March 2020 Microsoft guidance, gives the 60 read and 30 write figures. Sixty reads per second means a flow that loops over every channel in a large tenant will hit the wall within seconds, not minutes.
Thirty writes per second means a bulk announcement to many channels needs pacing, not a tight loop.
The same source lists a much tighter limit of 4 requests per second per team or channel, so teams making more than four requests per second will be throttled. Check its scope wording against Microsoft's current page before you rely on it.
If the figure holds as stated, one busy team will throttle you long before the tenant-wide numbers matter, and a burst of posts into a single channel is the likeliest way to trigger it.
At 15,000 per 10 seconds, the general Graph figure is roughly 1,500 per second, so the Teams-specific limits are the ones you'll actually meet.
Handle Teams API 429 errors and Retry-After
When you exceed a limit, Graph answers with HTTP 429 (Too Many Requests) and a Retry-After header giving the number of seconds to wait. Wait that long, then retry. Retrying sooner extends the penalty and can turn a one-second pause into a stalled run.
In a run trace, a 429 followed by a delay and a successful retry is healthy. Repeated 429s on the same step mean the flow is hitting the per-team ceiling, and the fix is to spread those posts out.
Fix common Teams API errors
You will meet five status codes, and the 429 is one of them. Each points at a different layer: 401 at the token, 403 at the permission, 404 at the target, 429 at the rate, 5xx at Microsoft.
When a run fails, read the last column of the table below first, because it tells you whether to change the connection, the permission or the timing.
The table sets Microsoft's meaning for each code beside the cause we usually find in Teams flows. Microsoft's full list is in the Graph error reference.
| Code | Microsoft's documented meaning | Usual Teams cause | Fix |
|---|---|---|---|
| 401 | Authentication is missing or invalid | Expired or wrong-tenant token | Reconnect and check the tenant |
| 403 | Caller is not allowed to do this | Missing admin consent, or wrong identity | Grant the scope, or switch delegated and application |
| 404 | Resource not found | Stale team or channel ID, or the user is not a member | Re-fetch the ID, check membership |
| 429 | Too many requests | Burst of posts to one team | Honour Retry-After, spread posts |
| 5xx | Service failed or is unavailable | Transient Microsoft-side fault | Retry with backoff |
Retrying the first three only repeats the failure, because they are configuration faults. The last two are about timing.
Authentication and permission errors
When a refund approval fails to post to a channel and returns 403, it is nearly always an identity problem, not a code problem.
The flow is acting as an application where Teams expects a signed-in user, or the scope was never consented by an admin.
State the identity in the flow description, then check the run trace to confirm it matches. A 404 often has the same root: the acting identity can't see that channel.
On a 429, Microsoft sends a Retry-After header, and that value is the wait it expects. Waiting less just earns another 429.
For 5xx, retry with growing delays and give up after a few attempts, so one bad hour doesn't become a pile of duplicate posts. Use the throttling guidance for the rules.
Batch related reads into one request instead of one call per item, and subscribe to change notifications instead of polling a channel for new messages. Queue posts so a burst leaves the flow at an even pace.
Log the request-id and client-request-id headers from every failed response, so Microsoft support can find the exact call.
Call Teams endpoints without code in Activepieces
Activepieces' Microsoft Teams integration is one of the 751 integrations in its catalogue, and once it is connected, the AI can use it as a tool and any flow can call it.

That matters because the throttling rules above are the part you'd otherwise write retry code for, and a visual flow lets you see each attempt instead of reconstructing it from logs.
For Graph endpoints the integration doesn't expose, the HTTP step reaches them, but you then own the request shape yourself.
Set Teams delegated access identity
Treat the connection as the real setup step, because it is where the identity decision gets made. Sign in as a person and the flow acts as that person (delegated); every message will carry their name and stop working if their access changes.
Decide that before you build, not after the first complaint.
In the screenshot, the builder has a test flow open. A Schedule trigger set to "Every Hour" is selected, the integration selector is listing spreadsheet apps, and the settings panel on the right shows a successful sample-data test.

Take from it the layout you'll work in. You pick a trigger, search for an integration in the modal, choose an action, and test each step on its own before moving on. Next, the same layout applies to Teams.
Send a channel message as a workflow
Steps, in order:
- Create a flow and choose a trigger. A Schedule trigger is the simplest, because you can test it without waiting for anyone to post.
- Add a step, search for Microsoft Teams in the integration selector, and choose the action that sends a channel message.
- Create the connection and sign in with the account you decided on above.
- Pick the team and channel, type a short test message, and run the step's test.
- Open the channel in Teams and confirm the message appears. Then open the run and read the step's output.
That last check is the point. If the message is missing, the run shows whether the step failed on permission, on a throttled response, or never ran. You're reading a trace, not guessing.
Before publishing, change the schedule to something sensible; a test message every hour in a real channel will annoy the people in it faster than any API error will.
When to stay in code
Stay in code when you need Graph behavior the integration and the HTTP step can't express cleanly. Examples are heavy batching, change notifications with subscription renewal you must control, or logic tied tightly to your own application's data.

The same goes for flows where you need to guarantee how throttled calls are queued across many tenants.
For one team posting and reading messages, a flow with a stated identity and a readable run is usually enough, and it needs no one hired for Graph plumbing.



