---
title: "Connect Zoom (your own app)"
description: "Saves the workspace's Zoom Server-to-Server OAuth app: account_id, client_id, client_secret and secret_token (the event subscription's Secret Token; leave…"
canonical_url: https://docs.markdrop.in/api/zoom/connect-zoom-your-own-app
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Connect Zoom (your own app)

`PUT https://api.markdrop.in/api/v1/zoom/connection`

Saves the workspace's Zoom Server-to-Server OAuth app: `account_id`, `client_id`, `client_secret` and `secret_token` (the event subscription's Secret Token; leave either secret out to keep the saved one), and optionally `team_id`. Markdrop checks them with Zoom first (an access token and a test call) and stores the secrets encrypted. Admins and owners. 400 when Zoom refuses the credentials; 409 when that Zoom account is connected to another workspace, or the workspace is connected with the Markdrop app for Zoom (disconnect it first).

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

## Request body

`application/json`, required.

- `workspace_id` (string, required): Matches `^[0-9a-f]{24}$`.
- `account_id` (string, required): 1–128 characters.
- `client_id` (string, required): 1–128 characters.
- `client_secret` (string): Blank: keep the saved one. Up to 256 characters.
- `secret_token` (string): The event subscription's Secret Token. Blank: keep the saved one. Up to 256 characters.
- `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 PUT https://api.markdrop.in/api/v1/zoom/connection \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "workspace_id": "WORKSPACE_ID",
       "account_id": "ACCOUNT_ID",
       "client_id": "CLIENT_ID"
     }'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/zoom/connection", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "workspace_id": "WORKSPACE_ID",
    "account_id": "ACCOUNT_ID",
    "client_id": "CLIENT_ID"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/zoom/connection",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={
        "workspace_id": "WORKSPACE_ID",
        "account_id": "ACCOUNT_ID",
        "client_id": "CLIENT_ID",
    },
)
r.raise_for_status()
print(r.json())
```
