---
title: "Add sample Microsoft 365 to a sandbox"
method: POST
path: "/v1/admin/sandbox-orgs/{sandboxId}/microsoft-365"
tags: ["Admin"]
---

# Add sample Microsoft 365 to a sandbox

`POST /v1/admin/sandbox-orgs/{sandboxId}/microsoft-365`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/admin/sandbox-orgs/{sandboxId}/microsoft-365`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Adds one per-person Microsoft 365 connector signed in at the sandbox's sample work apps, so Workbot can read each member's sample mail, calendar and files. Needs an open sandbox with a sample work apps address and a cloud deployment. Does nothing when it is already there; existing Outlook, Calendar and Drive connectors are kept. Platform administrators only.

## Path parameters

- `sandboxId` string, required

## Response `200`

Updated sandbox.

- object
  - `sandbox` object, required
    - `id` string, required
    - `organizationId` string, required
    - `name` string, required
    - `state` 'open' | 'expired' | 'closed', required
    - `joinLink` string, uri, required
    - `memberCount` integer, required
    - `memberLimit` integer, required
    - `connectorBaseUrl` string, nullable, required
    - `connectorCount` integer, required
    - `sampleMicrosoft365` boolean
    - `sampleSlack` boolean
    - `modelProviderCount` integer
    - `planTier` 'free' | 'team' | 'enterprise'
    - `modelCredit` object, nullable
      - `limitUsd` number, required
      - `remainingUsd` number, nullable, required
    - `allowedEmailDomains` string[], required
    - `joinRole` 'member' | 'admin' | 'super-admin', required
    - `expiresAt` string, date-time, required
    - `closedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required

## Other responses

- `400`: Invalid sandbox or request.
- `401`: Sign in required.
- `403`: Platform administrator required.
- `404`: Sandbox not found, or sandbox organizations are unavailable on this deployment.

## Changes

- **2026-11-12** `c53e2d42bb32`: 1 info
  - added the optional property `sandbox/sampleSlack` to the response with the `200` status
- **2026-11-11** `7b36e7ae6ac3`: 1 warning
  - added the new `super-admin` enum value to the `sandbox/joinRole` response property for the response status `200`
- **2026-11-02** `12fbeda9a6eb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/admin/sandbox-orgs/:sandboxId/microsoft-365/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
