# Microsoft Teams simulator

A stateful simulator of Microsoft Teams through Microsoft Graph for Graph's SDKs: teams, channels, messages and replies, chats, members and tags.

`teams-twin` is a local, stateful simulator of Microsoft Teams as Microsoft Graph serves it, for testing apps and agents that work with teams, channels, messages, chats, members and tags. Requests go to the `/v1.0/` paths Graph's SDKs call, and responses keep Graph's shapes, errors and lifecycles. Each place the two part ways is marked: a **Differs from Microsoft Graph** line beside the behavior, or a known issue under [Limitations](#limitations); everything else matches Graph. It never calls Microsoft Graph or Microsoft Entra ID, and it sends no email or Teams notifications.

## Quickstart

<!-- BEGIN generated: quickstart (go run ./ingest/cmd/twindocs teams; do not edit) -->

Install the CLI, sign in and boot the simulator with `RYSTIC_URL` pointing at it.

On Pro you sign in with an API key from [your account](https://www.rystic.ai/account/api-keys).

```bash
curl -fsSL https://www.rystic.ai/install.sh | sh
rystic login rys_…   # your API key
export RYSTIC_URL=$(rystic run teams-twin -d --port 0 --scenario teams_fresh_team --json | jq -r .data.url)
curl -s "$RYSTIC_URL/_rystic/version"
# -> {..."product":"teams-twin"...}
```

On Enterprise, the licensed edition signs in with a license file in place of the key: `rystic login ./rystic-license.json` ([licensing](https://www.rystic.ai/docs/licensing)).

<!-- END generated: quickstart -->

### First calls

List the fresh team's channels, post a message to General and read it back:

```bash
T=cbf3b6c5-da02-4328-8ce5-c07955f5ca5a
curl -s "$RYSTIC_URL/v1.0/teams/$T/channels" -H 'Authorization: Bearer placeholder-token' | jq -c '[.value[] | {id, displayName}]'
# -> [{"id":"19:73c156033377511ca75a08dfe79e1d0f@thread.tacv2","displayName":"General"}]
CH="$RYSTIC_URL/v1.0/teams/$T/channels/19:73c156033377511ca75a08dfe79e1d0f@thread.tacv2"
curl -s -X POST "$CH/messages" -H 'Authorization: Bearer placeholder-token' -H 'Content-Type: application/json' -d '{"body":{"content":"Crew 4 is on site."}}' | jq -c '{id, content: .body.content, from: .from.user.displayName}'
# -> {"id":"1772409600001","content":"Crew 4 is on site.","from":"Lena Fischer"}
curl -s "$CH/messages/1772409600001" -H 'Authorization: Bearer placeholder-token' | jq -c '{id, content: .body.content}'
# -> {"id":"1772409600001","content":"Crew 4 is on site."}
```

Every request runs as Lena Fischer, the scenario's signed-in member and the team's owner.

## Connect your client

Set the Graph SDK request adapter's base URL to `$RYSTIC_URL/v1.0`, and give it an authentication provider that sends any placeholder token. Python, with `msgraph-sdk`:

```python
import os
from kiota_abstractions.authentication import AuthenticationProvider
from msgraph import GraphRequestAdapter, GraphServiceClient

class PlaceholderToken(AuthenticationProvider):
    async def authenticate_request(self, request, additional_authentication_context=None):
        request.headers.add("Authorization", "Bearer placeholder-token")

adapter = GraphRequestAdapter(PlaceholderToken())
adapter.base_url = os.environ["RYSTIC_URL"] + "/v1.0"
client = GraphServiceClient(request_adapter=adapter)
# teams = await client.me.joined_teams.get()
```

Go, with `msgraph-sdk-go`:

```go
type placeholderToken struct{}

func (placeholderToken) AuthenticateRequest(_ context.Context, req *abs.RequestInformation, _ map[string]interface{}) error {
	req.Headers.Add("Authorization", "Bearer placeholder-token")
	return nil
}

func newClient() (*msgraphsdk.GraphServiceClient, error) {
	adapter, err := msgraphsdk.NewGraphRequestAdapter(placeholderToken{})
	if err != nil {
		return nil, err
	}
	adapter.SetBaseUrl(os.Getenv("RYSTIC_URL") + "/v1.0")
	return msgraphsdk.NewGraphServiceClient(adapter), nil
}
```

The JavaScript client, `@microsoft/microsoft-graph-client`, sends its token only to Graph's own https hosts, so leave its host as Graph's. To route it to the simulator, add `--intercept` to the quickstart's `rystic run`, then launch the app through `rystic exec` ([Intercept vendor calls](https://www.rystic.ai/docs/intercept.md)). CLI for Microsoft 365 and the Terraform provider connect the same way.

Any bearer token reads as the scenario's member, which `GET /v1.0/me` returns. A request with no token, or with another scheme such as `Basic`, returns 401 ([Auth](#auth)):

```bash
curl -s "$RYSTIC_URL/v1.0/me" -H 'Authorization: Bearer placeholder-token' | jq -c '{displayName, userPrincipalName}'
# -> {"displayName":"Lena Fischer","userPrincipalName":"lena.fischer@northwind.example"}
curl -s -w '%{http_code}' "$RYSTIC_URL/v1.0/me" | jq -cs .
# -> [{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty."}},401]
curl -s -o /dev/null -w '%{http_code}\n' "$RYSTIC_URL/v1.0/me" -H 'Authorization: Basic cnlzdGlj'
# -> 401
```

An unknown team returns 404 `NotFound`, and a refusal for a message adds `innerError` ([Error format](#error-format)):

```bash
curl -s "$RYSTIC_URL/v1.0/teams/00000000-0000-0000-0000-000000000000" -H 'Authorization: Bearer placeholder-token' | jq -c .
# -> {"error":{"code":"NotFound","message":"No team found with Group Id 00000000-0000-0000-0000-000000000000"}}
curl -s "$CH/messages/9999" -H 'Authorization: Bearer placeholder-token' | jq -c '.error | {code, innerError: (.innerError | keys)}'
# -> {"code":"NotFound","innerError":["client-request-id","date","request-id"]}
```

A list takes `$top` and returns `@odata.nextLink` while more remain ([Pagination](#pagination)):

```bash
curl -s -X POST "$CH/messages" -H 'Authorization: Bearer placeholder-token' -H 'Content-Type: application/json' -d '{"body":{"content":"Crew 5 is on the way."}}' | jq -r .body.content
# -> Crew 5 is on the way.
curl -s "$CH/messages?\$top=1" -H 'Authorization: Bearer placeholder-token' | jq -c '{posts: [.value[].body.content], more: (."@odata.nextLink" != null)}'
# -> {"posts":["Crew 5 is on the way."],"more":true}
NEXT=$(curl -s "$CH/messages?\$top=1" -H 'Authorization: Bearer placeholder-token' | jq -r '."@odata.nextLink"')
curl -s "$NEXT" -H 'Authorization: Bearer placeholder-token' | jq -c '{posts: [.value[].body.content], next: ."@odata.nextLink"}'
# -> {"posts":["Crew 4 is on site."],"next":null}
```

A path under `/beta/` returns 404 ([API version](#api-version)):

```bash
curl -s -o /dev/null -w '%{http_code}\n' "$RYSTIC_URL/beta/me" -H 'Authorization: Bearer placeholder-token'
# -> 404
```

With the rate limits on, the fifth read of one team within a second returns 429 ([Rate limits](#rate-limits)):

```bash
curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/network" -d '{"rate_limits": "real"}'
# -> 204
for i in 1 2 3 4; do curl -s -o /dev/null "$RYSTIC_URL/v1.0/teams/$T" -H 'Authorization: Bearer placeholder-token'; done
curl -s -w ' %{http_code}\n' "$RYSTIC_URL/v1.0/teams/$T" -H 'Authorization: Bearer placeholder-token'
# -> {"error":{"code":"TooManyRequests","message":"Please retry again later."}} 429
curl -s -o /dev/null -D - "$RYSTIC_URL/v1.0/teams/$T" -H 'Authorization: Bearer placeholder-token' | tr -d '\r' | grep -i '^retry-after'
# -> Retry-After: 1
curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/network" -d '{"rate_limits": "off"}'
# -> 204
```

A subscription is kept and reads back, and with delivery off the simulator sends nothing ([Webhooks](#webhooks)):

```bash
SUB=$(curl -s -X POST "$RYSTIC_URL/v1.0/subscriptions" -H 'Authorization: Bearer placeholder-token' -H 'Content-Type: application/json' -d '{"changeType":"created,updated","notificationUrl":"https://example.com/notify","resource":"/chats","expirationDateTime":"2026-03-02T01:00:00Z","clientState":"my-secret"}' | jq -r .id)
curl -s "$RYSTIC_URL/v1.0/subscriptions/$SUB" -H 'Authorization: Bearer placeholder-token' | jq -c '{resource, changeType, clientState}'
# -> {"resource":"/chats","changeType":"created,updated","clientState":"my-secret"}
curl -s "$RYSTIC_URL/_rystic/egress" | jq -c '{total}'
# -> {"total":0}
```

<!-- BEGIN generated: known-clients (go run ./ingest/cmd/twindocs teams; do not edit) -->

Each client's quickstart was run against this simulator in each way it connects, with the vendor's own hosts blocked.

| Client | Version | Kind | Works with | Fails with | Checked | Known gap |
|---|---|---|---|---|---|---|
| `@pnp/cli-microsoft365` (npm) | v12.0.0 | cli | proxy | — | 2026-12-02 | — |
| `@softeria/ms-365-mcp-server` (npm) | v0.191.0 | mcp-server | base URL | — | 2026-12-02 | — |
| `Microsoft.Graph` (NuGet) | v6.11.1 | sdk | base URL | — | 2026-12-02 | — |
| `github.com/microsoftgraph/msgraph-sdk-go` (Go) | v1.107.0 | sdk | base URL | — | 2026-12-02 | — |
| `@microsoft/microsoft-graph-client` (npm) | v3.1.0 | sdk | proxy | — | 2026-12-02 | — |
| `microsoftgraph/msgraph-sdk-powershell` (GitHub Releases) | v2.41.2 | cli | base URL | — | 2026-12-02 | — |
| `msgraph-sdk` (PyPI) | v1.65.0 | sdk | base URL | — | 2026-12-02 | — |
| `microsoft/msgraph` (Terraform) | v0.6.0 | terraform-provider | proxy | — | 2026-12-02 | — |

<!-- END generated: known-clients -->

## Auth

The simulator takes an access token as `Authorization: Bearer <token>`. Any non-empty token works, such as `placeholder-token`, and every request acts as the scenario's signed-in member, which `GET /v1.0/me` returns. You need no token from Microsoft Entra ID: give the client a provider that sends a placeholder in place of its sign-in.

| The request | The simulator returns |
|---|---|
| has no `Authorization` header | 401 `InvalidAuthenticationToken` |
| has `Authorization: Bearer ` with no token | 401 `InvalidAuthenticationToken` |
| uses another scheme, such as `Basic` | 401 `InvalidAuthenticationToken` |

**Differs from Microsoft Graph:** the simulator checks neither a token's signature, audience and expiry nor its scopes or app roles, so a request a real token's permissions would refuse succeeds.

## API version

The simulator serves Microsoft Graph v1.0 under `/v1.0/`. No header pins a version, and the same operations also return responses without the `/v1.0` prefix. A path under `/beta/` returns 404, a known issue in [Limitations](#limitations).

## Errors and limits

### Error format

A refused request returns Microsoft Graph's error object: `error.code` names the error and `error.message` explains it. Most refusals also return `error.innerError` with `date`, `request-id` and `client-request-id`, which the simulator fills in from its clock and its own request ids. An unknown team, for example, returns 404 with `code` `NotFound` and the message `No team found with Group Id <id>`.

### Rate limits

The simulator counts requests against the per-team, per-channel and per-chat limits Microsoft publishes for the Teams APIs, but refuses none unless you turn the limits on.

**Differs from Microsoft Graph:** with the limits off, the default, a request past them still succeeds.

[`rate_limits: real`](https://www.rystic.ai/docs/network-profiles.md) turns the limits on: at boot with `rystic run --rate-limits real` or `RYSTIC_RATE_LIMITS=real`, or mid-run with `curl -s -X POST "$RYSTIC_URL/_rystic/network" -d '{"rate_limits": "real"}'`. With the limits on, a fifth `GET /v1.0/teams/{team-id}` for one team within a second returns 429 with `error.code` `TooManyRequests` and `Retry-After: 1`. A reset keeps the setting.

### Pagination

A list takes `$top` for its page size. While more remain, it returns `@odata.nextLink`, a URL on the simulator with a `$skiptoken` query parameter; request it as given for the next page. The last page has no `@odata.nextLink`.

### Idempotency

Not applicable: Microsoft Graph reads no idempotency key, so a message posted twice is two messages.

## Coverage

On 2026-12-02, the simulator matched Microsoft Graph on 448 of the 492 tests that compare the two (91.1%), and 19 of them gave no verdict. Shifts and schedules, calls and online meetings and Graph's `/beta` endpoints are out of scope.

<!-- BEGIN generated: served-operations (go run ./ingest/cmd/twindocs teams; do not edit) -->

<!-- coverage-claim -->
241 routes, counted from the simulator's route table: 121 listed below, and 120 more that serve the same operations at other paths.

| Resource | Operations |
|---|---|
| Channel (7) | `GET, POST /v1.0/teams/{team-id}/channels`; `GET, PATCH, DELETE /v1.0/teams/{team-id}/channels/{channel-id}`; `GET /v1.0/teams/{team-id}/channels/{channel-id}/doesUserHaveAccess(userId='{user-id}',tenantId='{tenant-id}')`; `GET /v1.0/teams/{team-id}/channels/{channel-id}/filesFolder` |
| Channel member (6) | `GET /v1.0/teams/{team-id}/channels/{channel-id}/allMembers`; `GET, POST /v1.0/teams/{team-id}/channels/{channel-id}/members`; `GET, PATCH, DELETE /v1.0/teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}` |
| Channel message (12) | `GET /v1.0/teams/{team-id}/channels/getAllMessages()`; `GET, POST /v1.0/teams/{team-id}/channels/{channel-id}/messages`; `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/delta()`; `GET, PATCH /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}`; `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents`; `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/setReaction`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/softDelete`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/undoSoftDelete`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/unsetReaction` |
| Channel message hosted content (1) | `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value` |
| Channel message reply (8) | `GET, POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies`; `GET, PATCH /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/setReaction`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/softDelete`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/undoSoftDelete`; `POST /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/unsetReaction` |
| Channel tab (5) | `GET, POST /v1.0/teams/{team-id}/channels/{channel-id}/tabs`; `GET, PATCH, DELETE /v1.0/teams/{team-id}/channels/{channel-id}/tabs/{teamsTab-id}` |
| Chat (13) | `GET, POST /v1.0/chats`; `GET, PATCH, DELETE /v1.0/chats/{chat-id}`; `POST /v1.0/chats/{chat-id}/hideForUser`; `POST /v1.0/chats/{chat-id}/markChatReadForUser`; `POST /v1.0/chats/{chat-id}/markChatUnreadForUser`; `GET /v1.0/chats/{chat-id}/permissionGrants`; `POST /v1.0/chats/{chat-id}/unhideForUser`; `GET /v1.0/teamwork/deletedChats/{deletedChat-id}`; `POST /v1.0/teamwork/deletedChats/{deletedChat-id}/undoDelete`; `GET /v1.0/users/{user-id}/chats` |
| Chat app installation (4) | `GET, POST /v1.0/chats/{chat-id}/installedApps`; `GET, DELETE /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}` |
| Chat member (4) | `GET, POST /v1.0/chats/{chat-id}/members`; `GET, DELETE /v1.0/chats/{chat-id}/members/{conversationMember-id}` |
| Chat message (12) | `GET, POST /v1.0/chats/{chat-id}/messages`; `POST /v1.0/chats/{chat-id}/messages/replyWithQuote`; `GET, PATCH /v1.0/chats/{chat-id}/messages/{chatMessage-id}`; `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents`; `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value`; `POST /v1.0/chats/{chat-id}/messages/{chatMessage-id}/setReaction`; `POST /v1.0/chats/{chat-id}/messages/{chatMessage-id}/softDelete`; `POST /v1.0/chats/{chat-id}/messages/{chatMessage-id}/undoSoftDelete`; `POST /v1.0/chats/{chat-id}/messages/{chatMessage-id}/unsetReaction`; `GET /v1.0/users/{user-id}/chats/getAllMessages()` |
| Chat message hosted content (1) | `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}` |
| Group (2) | `POST /v1.0/groups`; `DELETE /v1.0/groups/{group-id}` |
| Pinned chat message (3) | `GET, POST /v1.0/chats/{chat-id}/pinnedMessages`; `DELETE /v1.0/chats/{chat-id}/pinnedMessages/{pinnedChatMessageInfo-id}` |
| Subscription (5) | `GET, POST /v1.0/subscriptions`; `GET, PATCH, DELETE /v1.0/subscriptions/{subscription-id}` |
| Team (11) | `PUT /v1.0/groups/{group-id}/team`; `POST /v1.0/teams`; `GET, PATCH /v1.0/teams/{team-id}`; `GET /v1.0/teams/{team-id}/allChannels`; `POST /v1.0/teams/{team-id}/archive`; `POST /v1.0/teams/{team-id}/clone`; `GET /v1.0/teams/{team-id}/incomingChannels`; `GET /v1.0/teams/{team-id}/permissionGrants`; `GET /v1.0/teams/{team-id}/primaryChannel`; `POST /v1.0/teams/{team-id}/unarchive` |
| Team app installation (4) | `GET, POST /v1.0/teams/{team-id}/installedApps`; `GET, DELETE /v1.0/teams/{team-id}/installedApps/{teamsAppInstallation-id}` |
| Team async operation (1) | `GET /v1.0/teams('{team-id}')/operations('{teamsAsyncOperation-id}')`; `GET /v1.0/teams/{team-id}/operations/{teamsAsyncOperation-id}` |
| Team member (8) | `GET /v1.0/me/joinedTeams`; `GET, POST /v1.0/teams/{team-id}/members`; `POST /v1.0/teams/{team-id}/members/add`; `POST /v1.0/teams/{team-id}/members/remove`; `GET, PATCH, DELETE /v1.0/teams/{team-id}/members/{conversationMember-id}` |
| Teamwork tag (5) | `GET, POST /v1.0/teams/{team-id}/tags`; `GET, PATCH, DELETE /v1.0/teams/{team-id}/tags/{teamworkTag-id}` |
| Teamwork tag member (4) | `GET, POST /v1.0/teams/{team-id}/tags/{teamworkTag-id}/members`; `GET, DELETE /v1.0/teams/{team-id}/tags/{teamworkTag-id}/members/{teamworkTagMember-id}` |
| User (3) | `GET /v1.0/me`; `GET /v1.0/users/{user-id}`; `GET /v1.0/users/{user-id}/joinedTeams` |
| Other (1) | `GET /v1.0/teamwork/deletedTeams` |

<!-- END generated: served-operations -->

<!-- BEGIN generated: feed-effects (go run ./ingest/cmd/twindocs teams; do not edit) -->

**Feed effects.** Each operation below can put an `effect` event on the event feed (`/_rystic/events`) for each event type beside it, when what the call does produces that event. Any other call puts only its `request` event there.

| Operation | Event types |
|---|---|
| `POST /v1.0/chats` | `created` |
| `PATCH /v1.0/chats/{chat-id}` | `updated` |
| `DELETE /v1.0/chats/{chat-id}` | `deleted` |
| `POST /v1.0/chats/{chat-id}/messages` | `created` |
| `PATCH /v1.0/chats/{chat-id}/messages/{chatMessage-id}` | `updated` |

<!-- END generated: feed-effects -->

## Scenarios

<!-- BEGIN generated: scenarios (go run ./ingest/cmd/twindocs teams; do not edit) -->

The simulator ships 4 scenarios; the quickstart boots `teams_fresh_team`.

| Scenario | What it is for | What it seeds | Clock |
|---|---|---|---|
| `teams_fresh_team` (default) | A newly provisioned team and its Microsoft 365 group with one owner and only its General channel, plus one more directory user not yet added and no messages, chats, tags, tabs or apps. | channel 1, channel_member 1, group 1, team 1, team_member 1, user 2 | 2026-03-02T00:00:00Z |
| `teams_launch_hub` | A lived-in launch team of five members and its Microsoft 365 group with three channels, three tabs, five channel posts carrying six replies, two installed apps, two permission grants, two tags with five tag members, two subscriptions and one inline image in a channel post, plus a group chat holding one pinned message, one inline image and one installed app beside a one-on-one chat. | channel 3, channel_member 13, channel_message 5, channel_message_hosted_content 1, channel_message_reply 6, channel_tab 3, chat 2, chat_installed_app 1, chat_member 5, chat_message 6, chat_message_hosted_content 1, group 1, pinned_chat_message 1, resource_specific_permission_grant 2, subscription 2, tag 2, tag_member 5, team 1, team_installed_app 2, team_member 5, user 5 | 2026-03-02T00:00:00Z |
| `teams_migration_import` | An imported helpdesk team and its Microsoft 365 group caught mid-migration | channel 3, channel_member 3, channel_message 4, channel_message_reply 3, chat 1, chat_member 3, chat_message 2, group 1, team 1, team_member 1, user 3 | 2026-03-02T00:00:00Z |
| `teams_moderation_trail` | A support team and its Microsoft 365 group whose deletion and edit states stand from boot | channel 3, channel_member 12, channel_message 4, channel_message_reply 3, chat 2, chat_member 5, chat_message 4, group 1, team 1, team_member 4, user 4 | 2026-03-02T00:00:00Z |

What each scenario holds:

- **`teams_migration_import`**: Two channels and one group chat still in migration mode beside one channel that has completed it, holding four backdated channel posts, three replies and two chat messages.
- **`teams_moderation_trail`**: One archived channel, one soft-deleted channel post, one soft-deleted reply, one soft-deleted chat message and one soft-deleted chat among live and edited neighbors.

Boot one by name, or load one into a running simulator:

```bash
rystic run teams-twin -d --port 0 --scenario teams_fresh_team
curl -s -X POST "$RYSTIC_URL/_rystic/scenario" -d '{"name":"teams_fresh_team"}'
```

<!-- END generated: scenarios -->

## Seeding state

A seed takes these registers. A record's key joins the ids of the team or chat it belongs to and its own with `/`:

| Register | Holds | Key |
|---|---|---|
| `state_user` | directory users | `<userId>` |
| `state_group` | Microsoft 365 groups, with `member_ids` and `owner_ids` | `<groupId>` |
| `state_team` | teams, each sharing its group's id | `<teamId>` |
| `state_team_member` | team members | `<teamId>/<memberId>` |
| `state_channel` | channels, each naming its `team_id` | `<teamId>/<channelId>` |
| `state_channel_member` | channel members | `<teamId>/<channelId>/<memberId>` |
| `state_channel_message` | channel posts | `<teamId>/<channelId>/<messageId>` |
| `state_channel_message_reply` | replies to a post | `<teamId>/<channelId>/<messageId>/<replyId>` |
| `state_channel_message_hosted_content` | a post's inline images | `<teamId>/<channelId>/<messageId>/<contentId>` |
| `state_channel_tab` | channel tabs | `<teamId>/<channelId>/<tabId>` |
| `state_team_installed_app` | apps installed in a team | `<teamId>/<installationId>` |
| `state_resource_specific_permission_grant` | a team's permission grants | `<teamId>/<grantId>` |
| `state_tag` | tags | `<teamId>/<tagId>` |
| `state_tag_member` | tag members | `<teamId>/<tagId>/<tagMemberId>` |
| `state_chat` | chats | `<chatId>` |
| `state_chat_member` | chat members | `<chatId>/<memberId>` |
| `state_chat_message` | chat messages | `<chatId>/<messageId>` |
| `state_chat_message_hosted_content` | a chat message's inline images | `<chatId>/<messageId>/<contentId>` |
| `state_pinned_chat_message` | pinned chat messages | `<chatId>/<messageId>` |
| `state_chat_installed_app` | apps installed in a chat | `<chatId>/<installationId>` |
| `state_subscription` | change notification subscriptions | `<subscriptionId>` |

This example adds a post to the fresh team's General channel with `POST /_rystic/seed` and reads it back through the API:

```bash
curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_channel_message": {"cbf3b6c5-da02-4328-8ce5-c07955f5ca5a/19:73c156033377511ca75a08dfe79e1d0f@thread.tacv2/1772300000000": {"id": "1772300000000", "team_id": "cbf3b6c5-da02-4328-8ce5-c07955f5ca5a", "channel_id": "19:73c156033377511ca75a08dfe79e1d0f@thread.tacv2", "messageType": "message", "createdDateTime": "2026-02-28T17:33:20.000Z", "body": {"contentType": "text", "content": "Seeded post"}}}}'
# -> 204
curl -s "$CH/messages/1772300000000" -H 'Authorization: Bearer placeholder-token' | jq -c '{id, createdDateTime, content: .body.content}'
# -> {"id":"1772300000000","createdDateTime":"2026-02-28T17:33:20.000Z","content":"Seeded post"}
```

[Seeding](https://www.rystic.ai/docs/concepts/worlds.md#seeding) covers the seed route's empty 204, the 400s it returns for what it refuses, boot files and how a seed merges with a scenario.

## Webhooks

A subscription you create with `POST /v1.0/subscriptions` is kept and read back as Microsoft Graph keeps it. The simulator sends nothing to its `notificationUrl` until it boots with `RYSTIC_WEBHOOK_DELIVERY=on`, and a receiver on a loopback or private address also needs `RYSTIC_WEBHOOK_ALLOW` to name it ([Boot configuration](https://www.rystic.ai/docs/boot-configuration.md#environment-variables)). [Connect your client](#connect-your-client) shows a subscription read back with nothing sent.

With delivery on, the simulator sends the validation request and the change notifications Microsoft Graph documents for a subscription. Notifications have no signature: check `clientState` as Microsoft Graph's docs advise. Which changes notify, and how the shape and timing may differ from Microsoft Graph's, are known issues ([Limitations](#limitations)).

## Features

<!-- BEGIN generated: features (go run ./ingest/cmd/twindocs teams; do not edit) -->

Each feature has its own page:

- [Channel messages and replies](https://www.rystic.ai/docs/simulators/teams/features/channel-messages.md): Posts and replies in a team's channels: send, edit, react, soft delete and undo, with each change read back through the thread.
- [Chats](https://www.rystic.ai/docs/simulators/teams/features/chats.md): Group and one-on-one chats outside any team: members, messages, pins, each member's hidden and read state, and a delete that restores.
- [Tags](https://www.rystic.ai/docs/simulators/teams/features/tags.md): Team tags that group members for mentions: create a tag with its first members, rename it, add and remove members, and delete it.

<!-- END generated: features -->

## Determinism and reset

A channel post's or reply's id is its creation time in milliseconds on the simulator's clock, so the first post on the default scenario is `1772409600001`. A channel you create takes the next id in its own sequence, `19:00000000000000000000000000000001@thread.tacv2` first, and a chat `19:00000000000000000000000000000001@thread.v2`.

The clock starts at the scenario's `2026-03-02T00:00:00Z`, and moves only with your requests, never with the wall clock. Each message you post moves it forward 1 millisecond, and so do some refusals, such as reading a message that does not exist.

`POST /_rystic/reset` clears every team, group, chat and subscription, restarts the id sequences and sets the clock back, so load a scenario again before the next test ([Reset and determinism](https://www.rystic.ai/docs/concepts/reset-and-determinism.md)).

## Limitations

<!-- BEGIN generated: known-gaps (go run ./ingest/cmd/twindocs teams; do not edit) -->

**Known issues.**

- The simulator does not serve JSON batch requests (POST /v1.0/$batch), which CLI for Microsoft 365 sends to read the details of the teams a user has joined. Workaround: Send the same reads one at a time with m365 request, for example m365 request --url "https://graph.microsoft.com/v1.0/teams/`<team id>`".
- GET /chats with $count=true returns an error whose code is BadRequest, where Microsoft Graph's code is empty.
- Listing the pinned messages of a chat that holds none returns a 404 error, as Microsoft Graph does once a chat's last pin is removed. Graph's answer for a chat that never held a pin, and for $count=true on the pinned-message and chat-member lists, is not yet checked.
- A tag member read returns displayName as null when the simulator holds no record of the member's user. It returns tenantId as null when no record names a tenant. Microsoft Graph fills both in.
- Reading a tag's members after its last member leaves returns 400 where Microsoft Graph returns 404. A refusal from a tag's or chat's member list, deleting a tag, or removing a chat or team member carries an innerError date ending in Z, which Microsoft Graph does not send.
- Editing a chat message with an unknown chat or message id returns an error whose message names the ids, where Microsoft Graph returns the message "Bad Request".
- GET /users/{id}/joinedTeams carries no @odata.count. Message lists in the shipped scenarios carry an empty deletedDateTime where Microsoft Graph sends null. A reaction reads back with a null displayName and a user identity shaped differently from Microsoft Graph's. Following the @odata.nextLink of a message's replies list returns 404.
- Creating a chat or editing a channel adds no system event message to its message list, where Microsoft Graph adds one.
- A request whose path matches no route returns 404 with its own error body, where Microsoft Graph returns 400 BadRequest "Resource not found for the segment" in its error envelope.
- Reading a channel that does not exist, including one just deleted, returns 400 BadRequest, where Microsoft Graph returns 404 NotFound.
- The channel message delta returns 404 at the bare messages/delta form, where Microsoft Graph returns 200, and ignores $expand=replies and $filter. On a channel with no messages, following the first next link returns the delta link, where Microsoft Graph returns 400.
- Posting a message to a one-on-one chat that POST /chats just returned returns 201. Microsoft Graph returned 404 NotFound each time this was measured.
- With `RYSTIC_WEBHOOK_DELIVERY=on`, creating a subscription sends a validation request to the URLs it names. Only creating, updating or deleting a chat and posting or editing a chat message send change notifications; deleting, restoring or reacting to a message and restoring a deleted chat send none. Neither the validation request nor the notifications are yet checked against Microsoft Graph, so their shape and timing may differ. Creating a subscription refuses no invalid change type, http URL or missing resource.
- Installing an app a team or chat already has returns 409 Conflict, as Microsoft Graph does. Installing an app that is not in the tenant's app catalog returns 201 with an empty teamsApp, where Microsoft Graph returns 404 NotFound. Uninstalling an app leaves the tabs it added in the channel's tab list; whether Microsoft Graph removes them is not yet checked.
- A $select or $expand on a tab or installed-app read that holds an empty entry after the first returns an error naming position 0, where Microsoft Graph names the empty entry's position. Sending $select or $expand more than once on those reads returns the same error, where Microsoft Graph says the option was specified more than once.
- A message posted with inline images creates no hosted content, so reading a channel or chat message's hosted content or its bytes is not supported. In the teams_launch_hub scenario, a seeded message's hosted content is missing from its list and from its read by id, while reading its bytes returns them.
- Reading all of a team's or chat's messages (getAllMessages) returns 412 to every caller, including an app-only caller Microsoft Graph serves, and reading a team's permission grants returns 400.
- Unarchiving a team returns 204 with no Location, and an archived team still accepts new messages and channels. A second PUT /groups/{id}/team returns 201 and resets the team, and a group created with a mail nickname another group holds returns 201. None of these, nor a clone's Location, is yet checked against Microsoft Graph, so what they return may differ.
- doesUserHaveAccess called with parameter aliases (`userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'`), the form msgraph-sdk for Python sends, returns 404 with the simulator's own error body. Microsoft Graph also returns 404 to that form, as NotFound "Requested API is not supported" in its error envelope. It serves the inline form `doesUserHaveAccess(userId='…',tenantId='…')`, which the simulator also serves.
- Posting a chat message gives it the next number after the highest chat message id the simulator holds, or 1 when it holds none. Microsoft Graph's chat message ids are the creation time in milliseconds, as the simulator's channel posts and replies are.
- On some lists, such as GET /v1.0/chats and a chat's or channel's messages, $top=0 returns 200 with an empty value and an @odata.nextLink back to the same empty page. A client that follows next links then never stops. Microsoft Graph's answer to $top=0 is not yet checked. Workaround: Send $top of 1 or more.
- The @odata.nextLink and @odata.deltaLink of some lists, such as GET /v1.0/chats and a channel's message delta, leave out the /v1.0 prefix that Microsoft Graph's links have. Following the links works, because the simulator serves each operation at both paths.

<!-- gaps-claim -->
Beyond the known issues, 491 of the 610 operations in the published spec are not served, 60 success responses may leave out fields the spec requires, 133 documented responses have no test yet and 478 behaviors are not modeled. The details follow.

**Not served.** 491 of the 610 operations in the published spec are not served. Calling one of these routes returns 501, unless a served route takes its path.

- chats.chat, 5 of 6 served: `GET /v1.0/chats/$count`
- chats.chat.Actions, 4 of 8 served: `POST /v1.0/chats/{chat-id}/completeMigration`, `POST /v1.0/chats/{chat-id}/removeAllAccessForUser`, `POST /v1.0/chats/{chat-id}/sendActivityNotification`, `POST /v1.0/chats/{chat-id}/startMigration`
- chats.chatMessage, 12 of 42 served: `GET /v1.0/chats/{chat-id}/messages/$count`, `GET /v1.0/chats/{chat-id}/messages/delta()`, `DELETE /v1.0/chats/{chat-id}/messages/{chatMessage-id}`, `POST /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents`, `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count`, `PATCH /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}`, `DELETE /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}`, `PUT /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value`, … and 22 more
- chats.conversationMember, 4 of 8 served: `GET /v1.0/chats/{chat-id}/members/$count`, `POST /v1.0/chats/{chat-id}/members/add`, `POST /v1.0/chats/{chat-id}/members/remove`, `PATCH /v1.0/chats/{chat-id}/members/{conversationMember-id}`
- chats.pinnedChatMessageInfo, 3 of 7 served: `GET /v1.0/chats/{chat-id}/pinnedMessages/$count`, `GET /v1.0/chats/{chat-id}/pinnedMessages/{pinnedChatMessageInfo-id}`, `PATCH /v1.0/chats/{chat-id}/pinnedMessages/{pinnedChatMessageInfo-id}`, `GET /v1.0/chats/{chat-id}/pinnedMessages/{pinnedChatMessageInfo-id}/message`
- chats.resourceSpecificPermissionGrant, 1 of 6 served: `POST /v1.0/chats/{chat-id}/permissionGrants`, `GET /v1.0/chats/{chat-id}/permissionGrants/$count`, `GET /v1.0/chats/{chat-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`, `PATCH /v1.0/chats/{chat-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`, `DELETE /v1.0/chats/{chat-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`
- chats.teamsAppInstallation, 4 of 9 served: `GET /v1.0/chats/{chat-id}/installedApps/$count`, `PATCH /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}`, `GET /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}/teamsApp`, `GET /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}/teamsAppDefinition`, `POST /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}/upgrade`
- groups.group, 2 of 5 served: `GET /v1.0/groups`, `GET /v1.0/groups/{group-id}`, `PATCH /v1.0/groups/{group-id}`
- groups.team, 1 of 3 served: `GET /v1.0/groups/{group-id}/team`, `DELETE /v1.0/groups/{group-id}/team`
- me.team, 1 of 2 served: `POST /v1.0/me/joinedTeams`
- me.user, 1 of 2 served: `PATCH /v1.0/me`
- teams.channel, 41 of 195 served: `GET /v1.0/teams/{team-id}/allChannels/$count`, `GET /v1.0/teams/{team-id}/allChannels/{channel-id}`, `GET /v1.0/teams/{team-id}/channels/$count`, `GET /v1.0/teams/{team-id}/channels/getAllRetainedMessages()`, `POST /v1.0/teams/{team-id}/channels/{channel-id}/allMembers`, `GET /v1.0/teams/{team-id}/channels/{channel-id}/allMembers/$count`, `POST /v1.0/teams/{team-id}/channels/{channel-id}/allMembers/add`, `POST /v1.0/teams/{team-id}/channels/{channel-id}/allMembers/remove`, … and 146 more
- teams.conversationMember, 7 of 8 served: `GET /v1.0/teams/{team-id}/members/$count`
- teams.resourceSpecificPermissionGrant, 1 of 6 served: `POST /v1.0/teams/{team-id}/permissionGrants`, `GET /v1.0/teams/{team-id}/permissionGrants/$count`, `GET /v1.0/teams/{team-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`, `PATCH /v1.0/teams/{team-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`, `DELETE /v1.0/teams/{team-id}/permissionGrants/{resourceSpecificPermissionGrant-id}`
- teams.team, 3 of 6 served: `GET /v1.0/teams`, `GET /v1.0/teams/$count`, `DELETE /v1.0/teams/{team-id}`
- teams.team.Actions, 3 of 5 served: `POST /v1.0/teams/{team-id}/completeMigration`, `POST /v1.0/teams/{team-id}/sendActivityNotification`
- teams.teamsAppInstallation, 4 of 9 served: `GET /v1.0/teams/{team-id}/installedApps/$count`, `PATCH /v1.0/teams/{team-id}/installedApps/{teamsAppInstallation-id}`, `GET /v1.0/teams/{team-id}/installedApps/{teamsAppInstallation-id}/teamsApp`, `GET /v1.0/teams/{team-id}/installedApps/{teamsAppInstallation-id}/teamsAppDefinition`, `POST /v1.0/teams/{team-id}/installedApps/{teamsAppInstallation-id}/upgrade`
- teams.teamsAsyncOperation, 1 of 6 served: `GET /v1.0/teams/{team-id}/operations`, `POST /v1.0/teams/{team-id}/operations`, `GET /v1.0/teams/{team-id}/operations/$count`, `PATCH /v1.0/teams/{team-id}/operations/{teamsAsyncOperation-id}`, `DELETE /v1.0/teams/{team-id}/operations/{teamsAsyncOperation-id}`
- teams.teamworkTag, 9 of 12 served: `GET /v1.0/teams/{team-id}/tags/$count`, `GET /v1.0/teams/{team-id}/tags/{teamworkTag-id}/members/$count`, `PATCH /v1.0/teams/{team-id}/tags/{teamworkTag-id}/members/{teamworkTagMember-id}`
- teamwork.deletedChat, 2 of 7 served: `GET /v1.0/teamwork/deletedChats`, `POST /v1.0/teamwork/deletedChats`, `GET /v1.0/teamwork/deletedChats/$count`, `PATCH /v1.0/teamwork/deletedChats/{deletedChat-id}`, `DELETE /v1.0/teamwork/deletedChats/{deletedChat-id}`
- teamwork.deletedTeam, 1 of 104 served: `POST /v1.0/teamwork/deletedTeams`, `GET /v1.0/teamwork/deletedTeams/$count`, `GET /v1.0/teamwork/deletedTeams/getAllMessages()`, `GET /v1.0/teamwork/deletedTeams/{deletedTeam-id}`, `PATCH /v1.0/teamwork/deletedTeams/{deletedTeam-id}`, `DELETE /v1.0/teamwork/deletedTeams/{deletedTeam-id}`, `GET /v1.0/teamwork/deletedTeams/{deletedTeam-id}/channels`, `POST /v1.0/teamwork/deletedTeams/{deletedTeam-id}/channels`, … and 95 more
- users.chat, 2 of 3 served: `POST /v1.0/users/{user-id}/chats`
- users.team, 1 of 2 served: `POST /v1.0/users/{user-id}/joinedTeams`
- users.user, 1 of 3 served: `PATCH /v1.0/users/{user-id}`, `DELETE /v1.0/users/{user-id}`
- Not served at all: chats.chat.Functions (2), chats.chatMessageInfo (3), chats.targetedChatMessage (36), chats.teamsTab (7), subscriptions.subscription.Actions (1), subscriptions.subscription.Functions (1), teams.group (3), teams.profilePhoto (5), teams.schedule (75), teams.team.Functions (1), teams.teamsTemplate (1), teamsTemplates.teamsTemplate (6)

**Missing response fields.** The spec requires these fields in a success response, and the simulator may leave them out:

- `GET /v1.0/chats` (200): `value/*/@odata.type`, `value/*/viewpoint/@odata.type`
- `GET /v1.0/chats/{chat-id}` (200): `@odata.type`, `viewpoint/@odata.type`
- `GET /v1.0/chats/{chat-id}/installedApps` (200): `value/*/consentedPermissionSet/@odata.type`, `value/*/consentedPermissionSet/resourceSpecificPermissions/*/@odata.type`
- `GET /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}` (200): `@odata.type`, `consentedPermissionSet/@odata.type`, `consentedPermissionSet/resourceSpecificPermissions/*/@odata.type`
- `GET /v1.0/chats/{chat-id}/messages` (200): `value/*/@odata.type`, `value/*/body/@odata.type`, `value/*/from/@odata.type`
- `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}` (200): `@odata.type`, `body/@odata.type`, `from/@odata.type`, `reactions/*/@odata.type`
- `GET /v1.0/chats/{chat-id}/permissionGrants` (200): `value/*/@odata.type`
- `GET /v1.0/chats/{chat-id}/pinnedMessages` (200): `value/*/@odata.type`
- `GET /v1.0/me` (200): `@odata.type`
- `GET /v1.0/me/joinedTeams` (200): `value/*/@odata.type`
- `GET /v1.0/subscriptions` (200): `value/*/@odata.type`
- `GET /v1.0/subscriptions/{subscription-id}` (200): `@odata.type`
- `GET /v1.0/teams('{team-id}')/operations('{teamsAsyncOperation-id}')` (200): `@odata.type`, `error/@odata.type`
- `GET /v1.0/teams/{team-id}` (200): `@odata.type`, `funSettings/@odata.type`, `guestSettings/@odata.type`, `memberSettings/@odata.type`, `messagingSettings/@odata.type`, `summary/@odata.type`
- `GET /v1.0/teams/{team-id}/allChannels` (200): `value/*/@odata.type`
- `GET /v1.0/teams/{team-id}/channels` (200): `value/*/@odata.type`
- `GET /v1.0/teams/{team-id}/channels/getAllMessages()` (200): `value/*/@odata.type`, `value/*/body/@odata.type`, `value/*/channelIdentity/@odata.type`
- `GET /v1.0/teams/{team-id}/channels/{channel-id}` (200): `@odata.type`, `summary/@odata.type`
- `GET /v1.0/teams/{team-id}/channels/{channel-id}/filesFolder` (200): `@odata.type`, `fileSystemInfo/@odata.type`, `folder/@odata.type`, `parentReference/@odata.type`
- `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages` (200): `value/*/@odata.type`, `value/*/body/@odata.type`, `value/*/channelIdentity/@odata.type`, `value/*/from/@odata.type`
- … and 40 more

**Not tested.** 492 tests compare the simulator with the real service. 133 documented responses have no test yet, and 107 of them need a credential our test account doesn't hold (200 ×4, 401 ×60, 403 ×41, 404 ×2). The other 26:

| Operation | Status | Why |
|---|---:|---|
| `DELETE /v1.0/teams/{team-id}/channels/{channel-id}` | 400 | a well-formed request does not provoke it |
| `DELETE /v1.0/teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}` | 400 | a well-formed request does not provoke it |
| `DELETE /v1.0/teams/{team-id}/channels/{channel-id}/tabs/{teamsTab-id}` | 400 | a well-formed request does not provoke it |
| `DELETE /v1.0/teams/{team-id}/members/{conversationMember-id}` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/chats/{chat-id}` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/chats/{chat-id}/members/{conversationMember-id}` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value` | 200 | no test could build the request it needs |
| `GET /v1.0/teams/{team-id}/channels/getAllMessages()` | 412 | no known request reaches it |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/allMembers` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/members` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}` | 200 | no test could build the request it needs |
| `GET /v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value` | 200 | no test could build the request it needs |
| `GET /v1.0/teams/{team-id}/members` | 429 | no request a client sends provokes it |
| `GET /v1.0/teams/{team-id}/members/{conversationMember-id}` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teams/{team-id}/permissionGrants` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/teamwork/deletedTeams` | 400 | a well-formed request does not provoke it |
| `GET /v1.0/users/{user-id}/chats/getAllMessages()` | 412 | no known request reaches it |
| `PATCH /v1.0/teams/{team-id}/channels/{channel-id}/tabs/{teamsTab-id}` | 400 | a well-formed request does not provoke it |
| … and 6 more | | |

**Not modeled.** Behavior the simulator does not model, by operation:

- Permission-based refusals (403) for a caller who may read the chat but may not uninstall apps are not documented here. (`DELETE /v1.0/chats/{chat-id}/installedApps/{teamsAppInstallation-id}`)
- The 30-day restorable copy under /directory/deletedItems and the permanent-delete path: out of scope, no in-scope operation reads them. (`DELETE /v1.0/groups/{group-id}`)
- Whether an app may delete a subscription another application or user created, and the status of that refusal, is not documented here. (`DELETE /v1.0/subscriptions/{subscription-id}`)
- Whether the channel's summary counters (membersCount, ownersCount) are recomputed at read after the removal is not stated for this operation. (`DELETE /v1.0/teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}`)
- Whether deleting a tag whose id is syntactically malformed is refused with a distinct code before the lookup. (`DELETE /v1.0/teams/{team-id}/tags/{teamworkTag-id}`)
- 5XX behavior: the operation references the shared error response for 5XX but states no trigger. (`GET /v1.0/me`)
- Whether an unknown query parameter is refused on this route is undocumented. (`GET /v1.0/teams/{team-id}/channels/{channel-id}`)
- Whether an unknown $select or $expand value is refused, and with what code. (`GET /v1.0/teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}`)
- $count=true behavior (whether the count is of the page or of all matched grants) is undocumented here. (`GET /v1.0/teams/{team-id}/permissionGrants`)
- The behavior of $select and $expand on this read (which properties are omitted by default, which navigation properties may be expanded) beyond the channel schema's note that summary is returned only when named in $select. (`GET /v1.0/teams/{team-id}/primaryChannel`)
- Whether @odata.count counts the page or every matched tag. (`GET /v1.0/teams/{team-id}/tags`)
- 5XX: the operation references the shared error response for 5XX; no condition or body is documented. (`GET /v1.0/teamwork/deletedChats/{deletedChat-id}`)
- The retention window after which a deleted team leaves this collection, and which deletions (group delete, team delete) place a team in it. (`GET /v1.0/teamwork/deletedTeams`)
- The 'model' query parameter (payment model A or B) and its refusals: the spec gives only a bare string with no documented values or error. (`GET /v1.0/users/{user-id}/chats/getAllMessages()`)
- Throttling (429) of this route: the service's published limits do not name the export functions. (`GET /v1.0/users/{user-id}/chats/getAllMessages()`)
- Writable properties other than topic (the request body is typed as the whole chat schema) are undocumented as updatable; only topic is modeled. (`PATCH /v1.0/chats/{chat-id}`)
- Whether writing a read-only member (etag, replyToId, deletedDateTime, webUrl) or an unknown member draws a 400 is undocumented here: the spec gives only a generic 4XX error with no code. (`PATCH /v1.0/chats/{chat-id}/messages/{chatMessage-id}`)
- The Teams-specific rule that an expiry more than one hour away requires lifecycleNotificationUrl, and its refusal when absent. (`PATCH /v1.0/subscriptions/{subscription-id}`)
- Web Push members (vapidPublicKey, webPushEncryptionP256dhPublicKey, webPushEncryptionSecret) and their documented 400 refusal on a standard webhook subscription; webPushEncryptionSecret is write-only and is never echoed here. (`PATCH /v1.0/subscriptions/{subscription-id}`)
- Whether PATCH refuses read-only members (id, applicationId, creatorId) or unknown body members. (`PATCH /v1.0/subscriptions/{subscription-id}`)
- … and 458 more

<!-- END generated: known-gaps -->

Release notes: [Changelog](https://www.rystic.ai/docs/simulators/teams/changelog.md)

---

Source: https://www.rystic.ai/docs/simulators/teams · Markdown: https://www.rystic.ai/docs/simulators/teams.md
