---
title: "Connect Google Meet"
description: "Makes your Google Apps Script for automatic import into workspace (members and up): a new token with the meetings:import scope, pinned to that workspace,…"
canonical_url: https://docs.markdrop.in/api/meetings/connect-google-meet
last_updated: 2026-11-05
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Connect Google Meet

`POST https://api.markdrop.in/api/v1/meetings/connection`

Makes your Google Apps Script for automatic import into `workspace` (members and up): a new token with the `meetings:import` scope, pinned to that workspace, shown once inside the `script` (Code.gs) with the endpoint filled in, plus the Apps Script `manifest` (appsscript.json) and the inbox `endpoint`. `restricted: true` restricts every meeting it imports to its attendees. `backfill_days` (0, 7, 30 or 90) makes the script's setup also bring in that many days of past meetings, oldest first and without notifying anyone. `tz` (the browser's IANA time zone) dates a Doc without a date in its title. Connecting again replaces your earlier connection: its token stops working. 10 an hour.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 10 per hour per IP address.
- **Guide:** [Import meetings automatically](https://docs.markdrop.in/workspaces/meetings-auto-import)

## Request body

`application/json`, required.

- `workspace` (string, required): File it in this workspace: the workspace's id. Up to 40 characters.
- `restricted` (boolean): Default `false`.
- `backfill_days` (0 | 7 | 30 | 90): One of `0`, `7`, `30`, `90`. Default `0`.
- `tz` (string): Up to 64 characters.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X POST https://api.markdrop.in/api/v1/meetings/connection \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"workspace":"665f1c2ab3e4d5f6a7b8c9d0","restricted":false}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/meetings/connection", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "workspace": "665f1c2ab3e4d5f6a7b8c9d0",
    "restricted": false
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/meetings/connection",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={
        "workspace": "665f1c2ab3e4d5f6a7b8c9d0",
        "restricted": False,
    },
)
r.raise_for_status()
print(r.json())
```
