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

# Connect Outlook mailboxes of a whole Microsoft tenant

> Connects Outlook / Microsoft 365 mailboxes without a per-mailbox sign-in. The tenant's admin must first approve the Up app's application permissions (Mail.Send, Mail.ReadWrite, User.Read.All) once, via https://login.microsoftonline.com/<tenant>/v2.0/adminconsent?client_id=<app id>&scope=https://graph.microsoft.com/.default&redirect_uri=https://app.salessequencer.com/oauth/microsoft/callback. Every address is checked with a real Graph call (reads its inbox folder, sends nothing) before it is saved; failures are returned and never saved. Existing mailboxes with the same address in the workspace are switched to this tenant connection and set active. New mailboxes: kind microsoft, warm-up pool off, campaign ramp starts today. Shared mailboxes work. Super-admin only, because a consented tenant opens every mailbox in it. At most 100 emails per call.

**Minimum role:** `superadmin` (`x-min-role`). **Destructive:** `false` (`x-destructive`).



## OpenAPI

````yaml /openapi.json post /mailboxes/connect-microsoft-tenant
openapi: 3.0.3
info:
  title: Sales Sequencer API
  version: '1'
  description: >-
    Every Sales Sequencer action over HTTP. Each call runs as the API key's
    creator, with that user's role, in the key's workspace. Auth: X-API-Key
    header.
servers:
  - url: https://api.salessequencer.com/api/v1
security:
  - key: []
paths:
  /mailboxes/connect-microsoft-tenant:
    post:
      tags:
        - Mailboxes
      summary: Connect Outlook mailboxes of a whole Microsoft tenant
      description: >-
        Connects Outlook / Microsoft 365 mailboxes without a per-mailbox
        sign-in. The tenant's admin must first approve the Up app's application
        permissions (Mail.Send, Mail.ReadWrite, User.Read.All) once, via
        https://login.microsoftonline.com/<tenant>/v2.0/adminconsent?client_id=<app
        id>&scope=https://graph.microsoft.com/.default&redirect_uri=https://app.salessequencer.com/oauth/microsoft/callback.
        Every address is checked with a real Graph call (reads its inbox folder,
        sends nothing) before it is saved; failures are returned and never
        saved. Existing mailboxes with the same address in the workspace are
        switched to this tenant connection and set active. New mailboxes: kind
        microsoft, warm-up pool off, campaign ramp starts today. Shared
        mailboxes work. Super-admin only, because a consented tenant opens every
        mailbox in it. At most 100 emails per call.


        **Minimum role:** `superadmin` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: mailboxes_connect_microsoft_tenant
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                emails:
                  description: >-
                    Mailbox addresses, separated by newlines, commas or spaces
                    (max 100).
                  type: string
                first_name:
                  description: >-
                    Sender first name for new mailboxes (kept on existing ones
                    that have one).
                  type: string
                last_name:
                  description: >-
                    Sender last name for new mailboxes (kept on existing ones
                    that have one).
                  type: string
                tenant:
                  description: Tenant id (GUID) or domain, e.g. contoso.onmicrosoft.com.
                  type: string
              required:
                - tenant
                - emails
              type: object
      responses:
        '200':
          description: >-
            JSON {ok, connected, reconnected, failed:[{email, reason}]}. 400
            when tenant or emails is missing or more than 100 emails are sent.
components:
  securitySchemes:
    key:
      in: header
      name: X-API-Key
      type: apiKey

````

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