DeewanDocs
API keys

Authentication

API keys, scopes, environments and rotation.

Send your key in the Authorization header on every request:

http
Authorization: Bearer dwn_live_k2x9…

Keys belong to a workspace

A key created while a workspace is active acts for that workspace and only sees its rooms and meetings. A key created on a personal account acts for that account. Only a workspace's owners, admins, or a role with Manage API keys and webhooks can create keys for it, and a key stops working if the person who created it loses that right.

Scopes

ScopeAllows
rooms:readList and retrieve rooms
rooms:writeCreate, update, lock and delete rooms
meetings:readList and retrieve scheduled meetings
meetings:writeSchedule and cancel meetings
tokens:createCreate join links and media tokens
participants:readSee who is in a meeting
participants:writeMute and remove people, end meetings
polls:readRead polls and their results
polls:writeCreate, close and delete polls
breakouts:readSee breakout rooms and who is in them
breakouts:writeStart, change, announce to and end breakout rooms
recordings:readList recordings and fetch their parts
recordings:writeDelete recordings
transcripts:readRead meeting transcripts and summaries
transcripts:writeDelete transcripts
webhooks:manageManage webhook endpoints
chat:readRead your app's chat users, channels, messages and calls
chat:writeCreate users and their tokens, channels and messages
calls:writeStart and end calls (users' own calls through their tokens need it too)

Give each integration the narrowest set it needs. A key that only sends people into existing rooms needs just rooms:read and tokens:create (the Join only preset).

Keys for partner apps: tick "Only rooms this key creates" when you create the key. It then sees and changes only the rooms it made, and their meetings, recordings and transcripts, whatever its scopes, and it can't manage webhooks (they report on the whole workspace).

Live and test keys

Keys start with dwn_live_ or dwn_test_. Both work against the same workspace; the label helps you keep staging and production credentials apart. Use separate keys per environment so you can revoke one without touching the other.

Rotating a key

  • Create a new key with the same scopes.
  • Deploy it to your servers.
  • Watch last used on the old key until it stops changing, then revoke it.

Keys can also be created with an expiry (30, 90 or 365 days).

Checking a key

bash
curl https://deewan.io/api/v1/me -H "Authorization: Bearer $DEEWAN_API_KEY"