> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Statisfy to a Microsoft Teams team

> Installs Statisfy in the team and queues the read of its channels and members, as Add in the app does. Safe to repeat. The channel rule decides which of its channels are read. A team id that is not a GUID is a 422; a team Teams does not have is a 404; Teams policy that blocks custom apps is a 422 with the fix; a 503 when Statisfy is in the team but its channels' read was not queued (repeat the call). A 409 when Teams is not connected; a 422 when the customer withdrew its approval of Statisfy. Calls Microsoft Graph: a 502 when Microsoft fails or cannot be reached, a 503 (with Retry-After when Microsoft sends one) while it throttles Statisfy, a 500 when Statisfy's own Microsoft sign-in fails.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/microsoft_teams/teams/{team_id}/install
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/microsoft_teams/teams/{team_id}/install:
    post:
      tags:
        - integrations
      summary: Add Statisfy to a Microsoft Teams team
      description: >-
        Installs Statisfy in the team and queues the read of its channels and
        members, as Add in the app does. Safe to repeat. The channel rule
        decides which of its channels are read. A team id that is not a GUID is
        a 422; a team Teams does not have is a 404; Teams policy that blocks
        custom apps is a 422 with the fix; a 503 when Statisfy is in the team
        but its channels' read was not queued (repeat the call). A 409 when
        Teams is not connected; a 422 when the customer withdrew its approval of
        Statisfy. Calls Microsoft Graph: a 502 when Microsoft fails or cannot be
        reached, a 503 (with Retry-After when Microsoft sends one) while it
        throttles Statisfy, a 500 when Statisfy's own Microsoft sign-in fails.
      operationId: integrations_microsoft_teams_install_team
      parameters:
        - description: >-
            The team's id (its Microsoft Entra group id), as GET /teams returns
            it
          in: path
          name: team_id
          required: true
          schema:
            pattern: >-
              ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamsInstall'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamsInstall:
      properties:
        id:
          description: >-
            The team's id (its Microsoft Entra group id), as GET /teams returns
            it
          title: Id
          type: string
        installed:
          title: Installed
          type: boolean
      required:
        - id
        - installed
      title: TeamsInstall
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.