---
title: "Finish connecting Zoom"
description: "Called by the page Zoom returns to, with Zoom's code and either the state from Start connecting (the workspace is in it) or, for an install started in the…"
canonical_url: https://docs.markdrop.in/api/zoom/finish-connecting-zoom
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Finish connecting Zoom

`POST https://api.markdrop.in/api/v1/zoom/connect/finish`

Called by the page Zoom returns to, with Zoom's `code` and either the `state` from Start connecting (the workspace is in it) or, for an install started in the Zoom App Marketplace, the `workspace_id` to connect (and optionally `team_id`). Markdrop exchanges the code, finds the Zoom account and stores the tokens encrypted; the response is the connection status plus `workspace_id`. Admins and owners. 400 when the link expired or was used; 409 when that Zoom account is connected to another workspace.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 20 per minute per IP address.
- **Guide:** [Zoom](https://docs.markdrop.in/integrations/zoom#connect-with-one-click)

## Request body

`application/json`, required.

- `code` (string, required): 1–2,000 characters.
- `state` (string): From Markdrop's Connect Zoom; absent for installs started in the Zoom App Marketplace. Up to 1,000 characters.
- `workspace_id` (string): Without a state: the workspace to connect (admins). Matches `^[0-9a-f]{24}$`.
- `team_id` (string): Matches `^([0-9a-f]{24})?$`.

## 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/zoom/connect/finish \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"code":"CODE"}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/zoom/connect/finish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "code": "CODE"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/zoom/connect/finish",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"code": "CODE"},
)
r.raise_for_status()
print(r.json())
```
