DeewanDocs
API keys

API reference

Base URL https://deewan.io/api/v1. Every request needs Authorization: Bearer <key>.

Account

GET/me

Inspect the key

Returns the key's id, workspace, scopes and environment. Useful as a connectivity check.

Returns An api_key object.

Request
curl -X GET "https://deewan.io/api/v1/me" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "api_key",
  "id": "9b1f…",
  "workspace_id": "org_8Hk2…",
  "scopes": [
    "rooms:read",
    "rooms:write"
  ],
  "environment": "live"
}

Rooms

GET/roomsrooms:read

List rooms

Rooms in the key's scope, newest first. Paginate with starting_after set to the last id of the previous page.

Query parameters

limitinteger
1–100, default 25.
starting_afteruuid
Return rooms created before this room.

Returns A list of room objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "room",
      "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "name": "Onboarding call",
      "code": "k7pq-3mzt-9xwe",
      "description": null,
      "url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
      "locked": false,
      "workspace_id": "org_8Hk2…",
      "team_id": null,
      "settings": {
        "access": "link",
        "admission": "knock",
        "mute_on_entry": false,
        "camera_off_on_entry": false,
        "screen_share": "hosts",
        "reactions": true,
        "chat": true,
        "encryption": "standard",
        "recordings": "workspace",
        "before_host": "join",
        "type": "meeting"
      },
      "created_at": "2026-09-17T09:12:44.120Z",
      "updated_at": "2026-09-17T09:12:44.120Z"
    }
  ],
  "has_more": false
}
POST/roomsrooms:write

Create a room

Creates a room with a permanent link. Rooms created through the API default to access: "link".

Body

namestringrequired
1–80 characters.
descriptionstring | null
Up to 500 characters.
settings.access"members" | "link"
link: anyone with the link can join, with or without an account. members: only people who can already see the room.
settings.admission"direct" | "knock"
direct: everyone the room lets in walks straight in (in a link room, anyone with the link). knock: everyone but hosts waits for a host to admit them.
settings.mute_on_entryboolean
Join participants with their microphone off.
settings.camera_off_on_entryboolean
Join participants with their camera off.
settings.cameras_hosts_onlyboolean
For classes: attendees' cameras are seen only by hosts and co-hosts. Everyone still hears everyone and sees the hosts. Enforced by the media server.
settings.screen_share"everyone" | "hosts"
Who may share their screen.
settings.reactionsboolean
Allow emoji reactions.
settings.chatboolean
Allow meeting chat.
settings.encryption"standard" | "strict"
strict: the meeting key exists only on participants' devices and Deewan can't access meeting content. Media tokens need the participant's exchange_key (the client SDKs make it); live captions aren't available. Can't be changed while a meeting is running.
settings.recordings"workspace" | "end_to_end"
workspace (the default for rooms made through the API): recordings can be downloaded and played through this API. end_to_end: only people allowed in the room can open them — not Deewan, not the API. Strict rooms are always end_to_end.
settings.idle_timeout_minutesinteger
How long someone may stay alone in the meeting (5–1440 minutes, default 90). Then they're asked "still here?" (the alone_check system message) and removed if they don't answer within two minutes, so a forgotten tab or a script can't hold a seat or run up minutes.
settings.transcriptionboolean
Keep a transcript (Deewan AI): after each meeting, what was said — speaker, time and text — and a short summary, for the room's hosts and this API (transcripts:read). Everyone in the meeting is told it is transcribed, in the lobby and in the meeting. Not available in strict rooms. Default false.
settings.single_useboolean
When the meeting ends, the room locks: nobody can join it again with a stray link or token. Its attendance, transcript and recordings stay readable until you delete the room. For one-off calls (an interview, a coaching session), so a room can't outlive its call even if your app never cleans up. Default false.
settings.before_host"join" | "wait"
What happens before a host arrives. join (default): people let into the room go straight in. wait: they wait on the pre-join page and come in automatically the moment a host joins. Applies to the room's own link; join links you create through this API always go straight in.

Returns The new room.

Request
curl -X POST "https://deewan.io/api/v1/rooms" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Onboarding call","settings":{"admission":"knock","screen_share":"hosts"}}'
Response
{
  "object": "room",
  "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "name": "Onboarding call",
  "code": "k7pq-3mzt-9xwe",
  "description": null,
  "url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "locked": false,
  "workspace_id": "org_8Hk2…",
  "team_id": null,
  "settings": {
    "access": "link",
    "admission": "knock",
    "mute_on_entry": false,
    "camera_off_on_entry": false,
    "screen_share": "hosts",
    "reactions": true,
    "chat": true,
    "encryption": "standard",
    "recordings": "workspace",
    "before_host": "join",
    "type": "meeting"
  },
  "created_at": "2026-09-17T09:12:44.120Z",
  "updated_at": "2026-09-17T09:12:44.120Z"
}
GET/rooms/{room_id}rooms:read

Retrieve a room

Returns one room.

Path parameters

room_iduuidrequired
The room's id.

Returns A room.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "room",
  "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "name": "Onboarding call",
  "code": "k7pq-3mzt-9xwe",
  "description": null,
  "url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "locked": false,
  "workspace_id": "org_8Hk2…",
  "team_id": null,
  "settings": {
    "access": "link",
    "admission": "knock",
    "mute_on_entry": false,
    "camera_off_on_entry": false,
    "screen_share": "hosts",
    "reactions": true,
    "chat": true,
    "encryption": "standard",
    "recordings": "workspace",
    "before_host": "join",
    "type": "meeting"
  },
  "created_at": "2026-09-17T09:12:44.120Z",
  "updated_at": "2026-09-17T09:12:44.120Z"
}
PATCH/rooms/{room_id}rooms:write

Update a room

Changes the name, description, lock or settings. Setting changes apply immediately to a meeting in progress (who may share, chat and react).

Path parameters

room_iduuidrequired
The room's id.

Body

namestring
1–80 characters.
descriptionstring | null
Up to 500 characters.
lockedboolean
A locked room admits nobody new.
settings.access"members" | "link"
link: anyone with the link can join, with or without an account. members: only people who can already see the room.
settings.admission"direct" | "knock"
direct: everyone the room lets in walks straight in (in a link room, anyone with the link). knock: everyone but hosts waits for a host to admit them.
settings.mute_on_entryboolean
Join participants with their microphone off.
settings.camera_off_on_entryboolean
Join participants with their camera off.
settings.cameras_hosts_onlyboolean
For classes: attendees' cameras are seen only by hosts and co-hosts. Everyone still hears everyone and sees the hosts. Enforced by the media server.
settings.screen_share"everyone" | "hosts"
Who may share their screen.
settings.reactionsboolean
Allow emoji reactions.
settings.chatboolean
Allow meeting chat.
settings.encryption"standard" | "strict"
strict: the meeting key exists only on participants' devices and Deewan can't access meeting content. Media tokens need the participant's exchange_key (the client SDKs make it); live captions aren't available. Can't be changed while a meeting is running.
settings.recordings"workspace" | "end_to_end"
workspace (the default for rooms made through the API): recordings can be downloaded and played through this API. end_to_end: only people allowed in the room can open them — not Deewan, not the API. Strict rooms are always end_to_end.
settings.idle_timeout_minutesinteger
How long someone may stay alone in the meeting (5–1440 minutes, default 90). Then they're asked "still here?" (the alone_check system message) and removed if they don't answer within two minutes, so a forgotten tab or a script can't hold a seat or run up minutes.
settings.transcriptionboolean
Keep a transcript (Deewan AI): after each meeting, what was said — speaker, time and text — and a short summary, for the room's hosts and this API (transcripts:read). Everyone in the meeting is told it is transcribed, in the lobby and in the meeting. Not available in strict rooms. Default false.
settings.single_useboolean
When the meeting ends, the room locks: nobody can join it again with a stray link or token. Its attendance, transcript and recordings stay readable until you delete the room. For one-off calls (an interview, a coaching session), so a room can't outlive its call even if your app never cleans up. Default false.
settings.before_host"join" | "wait"
What happens before a host arrives. join (default): people let into the room go straight in. wait: they wait on the pre-join page and come in automatically the moment a host joins. Applies to the room's own link; join links you create through this API always go straight in.

Returns The updated room.

Request
curl -X PATCH "https://deewan.io/api/v1/rooms/$ROOM_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locked":true}'
Response
{
  "object": "room",
  "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "name": "Onboarding call",
  "code": "k7pq-3mzt-9xwe",
  "description": null,
  "url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "locked": true,
  "workspace_id": "org_8Hk2…",
  "team_id": null,
  "settings": {
    "access": "link",
    "admission": "knock",
    "mute_on_entry": false,
    "camera_off_on_entry": false,
    "screen_share": "hosts",
    "reactions": true,
    "chat": true,
    "encryption": "standard",
    "recordings": "workspace",
    "before_host": "join",
    "type": "meeting"
  },
  "created_at": "2026-09-17T09:12:44.120Z",
  "updated_at": "2026-09-17T09:12:44.120Z"
}
DELETE/rooms/{room_id}rooms:write

Delete a room

Deletes the room and ends any meeting in it. Its link stops working.

Path parameters

room_iduuidrequired
The room's id.

Returns The deleted room with deleted: true.

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "room",
  "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "name": "Onboarding call",
  "code": "k7pq-3mzt-9xwe",
  "description": null,
  "url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "locked": false,
  "workspace_id": "org_8Hk2…",
  "team_id": null,
  "settings": {
    "access": "link",
    "admission": "knock",
    "mute_on_entry": false,
    "camera_off_on_entry": false,
    "screen_share": "hosts",
    "reactions": true,
    "chat": true,
    "encryption": "standard",
    "recordings": "workspace",
    "before_host": "join",
    "type": "meeting"
  },
  "created_at": "2026-09-17T09:12:44.120Z",
  "updated_at": "2026-09-17T09:12:44.120Z",
  "deleted": true
}

Joining

POST/rooms/{room_id}/tokenstokens:create

Create a media token

Credentials for an interface you build yourself, with @deewanio/sdk/client (web), @deewanio/react-native or the deewan Flutter package. Valid for 10 minutes to connect, and as the participant's credential for the Participant API while they are in the meeting. Standard rooms: includes the meeting's end-to-end encryption passphrase, so treat the whole response as a secret for that one person. Strict rooms: send the participant's exchange_key (the client SDKs make it on their device); the response has e2ee: "strict" and no passphrase, and the SDK receives the key from the people already in the meeting. For Deewan's own interface, create a join link instead.

Path parameters

room_iduuidrequired
The room's id.

Body

namestringrequired
Display name (1–60).
role"host" | "participant"
Default participant.
user_idstring
Your own id for this person (max 64).
avatarstring
A Deewan avatar preset id, a01–a16.
exchange_keystring
Strict rooms (required there): the participant's public key for the in-meeting key exchange, from the client SDK's exchangeKey(). An uncompressed P-256 point, base64url.
max_duration_secondsinteger
The longest this person may stay, from now (60 s – 24 h). Two minutes before, their client gets a time_warning; then time_up and they're removed. Enforced by Deewan's server, so a modified client can't stay longer. The response's leave_at says when. Required for agents.
kind"participant" | "agent"
Default participant. agent: a token for your own bot — an AI voice agent, an avatar, a recorder. The media server marks it as an agent, so it stays out of attendance, people counts, the participant list of the client SDKs (they list it under agents()) and the "still here?" check. It may always send data (captions, its state), whatever the room's chat setting, and it is never a host. Billed per minute like a participant. Needs max_duration_seconds. See the AI agents guide.
publish_on_behalfstring
Agents only: the identity of an agent that is in this room now, that this one publishes for — an avatar speaking for a voice agent. Clients show this token's video and audio as that agent's. It can never name a person.

Returns A room_token, with kind.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/tokens" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Omar","user_id":"user_456"}'
Response
{
  "object": "room_token",
  "server_url": "wss://media.deewan.io",
  "token": "eyJhbGciOi…",
  "identity": "api_Qm9vZ3YxN2d0.k2d9x0aa",
  "participant_ref": "api_Qm9vZ3YxN2d0",
  "kind": "participant",
  "e2ee": "standard",
  "e2ee_passphrase": "Yx3…",
  "expires_in": 600
}

Participants

GET/rooms/{room_id}/participantsparticipants:read

List participants

Who is in the meeting right now. Empty when the meeting isn't running.

Path parameters

room_iduuidrequired
The room's id.

Returns A list of participant objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/participants" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "participant",
      "identity": "api_Qm9vZ3Y.k2d9x0aa",
      "name": "Omar",
      "role": "participant",
      "joined_at": "2026-09-17T09:20:11.000Z",
      "audio_muted": false,
      "video_muted": true,
      "screen_sharing": false,
      "hand_raised": false
    }
  ],
  "has_more": false
}
GET/rooms/{room_id}/sessionsparticipants:read

List sessions

Each run of the room — from the first person in to the last out — newest first. A room used for a series of interviews or classes has one session each time. live is true while people are still inside.

Path parameters

room_iduuidrequired
The room's id.

Query parameters

limitinteger
1–100. Default 20.
beforestring
ISO 8601: only sessions that started before this time (the previous page's last started_at).

Returns A list of session objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/sessions" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "session",
      "id": "RM_wQr8kE2mZpN",
      "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "started_at": "2026-09-17T09:00:12.000Z",
      "ended_at": "2026-09-17T09:47:03.000Z",
      "live": false,
      "people": 3
    }
  ],
  "has_more": false
}
GET/rooms/{room_id}/sessions/{session_id}/attendanceparticipants:read

Get attendance

Who was in one session: one row per person, with their role (host, cohost or participant), first arrival, last departure, total seconds and how many times they joined. People you let in with a user_id carry the participant_ref you got when you created their link or token.

Path parameters

room_iduuidrequired
The room's id.
session_idstringrequired
From the sessions list, or the session_id on a webhook.

Returns A list of attendance objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/sessions/{session_id}/attendance" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "attendance",
      "participant_ref": "api_Qm9vZ3YxN2d0",
      "name": "Sara Ahmed",
      "role": "host",
      "guest": true,
      "joined_at": "2026-09-17T09:00:12.000Z",
      "left_at": "2026-09-17T09:47:03.000Z",
      "seconds": 2811,
      "visits": 1
    },
    {
      "object": "attendance",
      "participant_ref": "api_Wm9yYTE4MmFh",
      "name": "Omar Khalil",
      "role": "participant",
      "guest": true,
      "joined_at": "2026-09-17T09:01:40.000Z",
      "left_at": "2026-09-17T09:46:58.000Z",
      "seconds": 2690,
      "visits": 2
    }
  ],
  "has_more": false
}
POST/rooms/{room_id}/participants/{identity}/muteparticipants:write

Mute a participant

Mutes someone's microphone. Only they can unmute themselves.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, audio_muted: true }

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY/mute" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "api_Qm9vZ3Y.k2d9x0aa",
  "audio_muted": true
}
POST/rooms/{room_id}/participants/{identity}/cohostparticipants:write

Make a co-host

Gives someone in the meeting host powers for this meeting only: admitting, muting and removing people, and running breakout rooms and polls. Not the room itself — a co-host can't change its saved settings or delete it — and it ends when the meeting ends. Works for Deewan accounts and for your own users who joined with a token from this API — for them it lasts while they're connected (to make someone a host from the start, create their token with role: "host"). The key's creator must manage the room.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, cohost: true }

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY/cohost" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "user_2fK9Lm.k2d9x0aa",
  "cohost": true
}
DELETE/rooms/{room_id}/participants/{identity}/cohostparticipants:write

Remove a co-host

Takes co-host powers back. Never demotes one of the room's own hosts (400 not_a_cohost).

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, cohost: false }

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY/cohost" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "user_2fK9Lm.k2d9x0aa",
  "cohost": false
}
POST/rooms/{room_id}/participants/{identity}/stageparticipants:write

Invite to speak (webinars)

In a webinar, puts someone from the audience on stage: the media server now lets them publish their microphone and camera (and their screen, if the room allows it). Lasts while they're connected. Hosts are always on stage (400 already_host); a meeting has no audience (400 not_a_webinar). The key's creator must manage the room.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, on_stage: true }

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY/stage" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "api_Qm9vZ3Y.k2d9x0aa",
  "on_stage": true
}
DELETE/rooms/{room_id}/participants/{identity}/stageparticipants:write

Move to audience (webinars)

Sends someone on stage back to the audience. The media server stops their microphone, camera and screen at once.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, on_stage: false }

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY/stage" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "api_Qm9vZ3Y.k2d9x0aa",
  "on_stage": false
}
GET/rooms/{room_id}/waitingparticipants:read

List the waiting room

People asking to join, oldest first. People wait in rooms set to "Ask to join", and outsiders wait in members-only rooms. Nobody is kept waiting more than an hour.

Path parameters

room_iduuidrequired
The room's id.

Returns A list of waiting_participant objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/waiting" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "waiting_participant",
      "identity": "guest_Hk2p9QwEr3.m1x0aa2b",
      "name": "Rania"
    }
  ]
}
POST/rooms/{room_id}/waiting/{identity}participants:write

Admit or deny

Lets someone in from the waiting room, or turns them away.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Body

decision"admit" | "deny"required
What to do.

Returns { object: "waiting_participant", identity, decision }

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/waiting/$IDENTITY" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision":"admit"}'
Response
{
  "object": "waiting_participant",
  "identity": "guest_Hk2p9QwEr3.m1x0aa2b",
  "decision": "admit"
}
DELETE/rooms/{room_id}/participants/{identity}participants:write

Remove a participant

Removes someone from the meeting. Lock the room as well if they shouldn't come back.

Path parameters

room_iduuidrequired
The room's id.
identitystringrequired
The participant's identity.

Returns { object, identity, removed: true }

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID/participants/$IDENTITY" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "api_Qm9vZ3Y.k2d9x0aa",
  "removed": true
}
POST/rooms/{room_id}/endparticipants:write

End the meeting

Disconnects everyone. The room and its link remain.

Path parameters

room_iduuidrequired
The room's id.

Returns { object: "room", id, ended: true }

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/end" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "room",
  "id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "ended": true
}

Meetings

GET/meetingsmeetings:read

List scheduled meetings

Meetings overlapping a time window, soonest first.

Query parameters

fromISO 8601
Default: now.
toISO 8601
Default: 30 days after from.
limitinteger
1–100, default 25.

Returns A list of meeting objects.

Request
curl -X GET "https://deewan.io/api/v1/meetings" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "meeting",
      "id": "a1d3f0c9-6b2e-4e8f-8d1a-7c0b9e5f2a11",
      "title": "Weekly sync",
      "description": null,
      "starts_at": "2026-10-01T09:00:00.000Z",
      "ends_at": "2026-10-01T09:30:00.000Z",
      "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "join_url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
      "recurrence": "weekly",
      "recurrence_until": null,
      "timezone": "Asia/Amman",
      "created_at": "2026-09-17T09:15:02.000Z"
    }
  ],
  "has_more": false
}
POST/meetingsmeetings:write

Schedule a meeting

Adds a meeting to the workspace calendar, once or on a repeating rule, optionally in a room. It is also written to the key creator's connected Google and Outlook calendars, and sends meeting.scheduled.

Body

titlestringrequired
1–120 characters.
starts_atISO 8601required
With a timezone offset. For a series, the first occurrence.
ends_atISO 8601required
After starts_at; a meeting lasts at most 24 hours.
room_iduuid
A room in the key's scope.
descriptionstring | null
Up to 1000 characters.
recurrence"none" | "daily" | "weekdays" | "weekly" | "biweekly" | "monthly"
How the meeting repeats. Default none.
recurrence_untilISO 8601 | null
When a series ends. null: it doesn't.
timezonestring | null
IANA zone the series repeats in, e.g. Asia/Amman, so 10:00 stays 10:00 through daylight saving.

Returns The new meeting.

Request
curl -X POST "https://deewan.io/api/v1/meetings" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Weekly sync","room_id":"5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44","starts_at":"2026-10-01T09:00:00.000Z","ends_at":"2026-10-01T09:30:00.000Z","recurrence":"weekly","timezone":"Asia/Amman"}'
Response
{
  "object": "meeting",
  "id": "a1d3f0c9-6b2e-4e8f-8d1a-7c0b9e5f2a11",
  "title": "Weekly sync",
  "description": null,
  "starts_at": "2026-10-01T09:00:00.000Z",
  "ends_at": "2026-10-01T09:30:00.000Z",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "join_url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "recurrence": "weekly",
  "recurrence_until": null,
  "timezone": "Asia/Amman",
  "created_at": "2026-09-17T09:15:02.000Z"
}
GET/meetings/{meeting_id}meetings:read

Retrieve a meeting

Returns one scheduled meeting.

Path parameters

meeting_iduuidrequired
The meeting's id.

Returns A meeting.

Request
curl -X GET "https://deewan.io/api/v1/meetings/$MEETING_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "meeting",
  "id": "a1d3f0c9-6b2e-4e8f-8d1a-7c0b9e5f2a11",
  "title": "Weekly sync",
  "description": null,
  "starts_at": "2026-10-01T09:00:00.000Z",
  "ends_at": "2026-10-01T09:30:00.000Z",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "join_url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "recurrence": "weekly",
  "recurrence_until": null,
  "timezone": "Asia/Amman",
  "created_at": "2026-09-17T09:15:02.000Z"
}
PATCH/meetings/{meeting_id}meetings:write

Update a meeting

Changes a meeting. Fields you leave out keep their value. For a repeating meeting every occurrence changes. Connected calendars are updated too, and meeting.updated is sent.

Path parameters

meeting_iduuidrequired
The meeting's id.

Body

titlestring
1–120 characters.
starts_atISO 8601
With a timezone offset. For a series, the first occurrence.
ends_atISO 8601
After starts_at; a meeting lasts at most 24 hours.
descriptionstring | null
Up to 1000 characters.
recurrence"none" | "daily" | "weekdays" | "weekly" | "biweekly" | "monthly"
How the meeting repeats. Default none.
recurrence_untilISO 8601 | null
When a series ends. null: it doesn't.
timezonestring | null
IANA zone the series repeats in, e.g. Asia/Amman, so 10:00 stays 10:00 through daylight saving.

Returns The updated meeting.

Request
curl -X PATCH "https://deewan.io/api/v1/meetings/$MEETING_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Weekly sync (new time)","starts_at":"2026-10-01T10:00:00+03:00","ends_at":"2026-10-01T10:30:00+03:00"}'
Response
{
  "object": "meeting",
  "id": "a1d3f0c9-6b2e-4e8f-8d1a-7c0b9e5f2a11",
  "title": "Weekly sync",
  "description": null,
  "starts_at": "2026-10-01T09:00:00.000Z",
  "ends_at": "2026-10-01T09:30:00.000Z",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "join_url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "recurrence": "weekly",
  "recurrence_until": null,
  "timezone": "Asia/Amman",
  "created_at": "2026-09-17T09:15:02.000Z"
}
DELETE/meetings/{meeting_id}meetings:write

Cancel a meeting

Removes the meeting from the calendar, and from connected Google and Outlook calendars. The room is not affected.

Path parameters

meeting_iduuidrequired
The meeting's id.

Returns The cancelled meeting with deleted: true.

Request
curl -X DELETE "https://deewan.io/api/v1/meetings/$MEETING_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "meeting",
  "id": "a1d3f0c9-6b2e-4e8f-8d1a-7c0b9e5f2a11",
  "title": "Weekly sync",
  "description": null,
  "starts_at": "2026-10-01T09:00:00.000Z",
  "ends_at": "2026-10-01T09:30:00.000Z",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "join_url": "https://deewan.io/en/r/k7pq-3mzt-9xwe",
  "recurrence": "weekly",
  "recurrence_until": null,
  "timezone": "Asia/Amman",
  "created_at": "2026-09-17T09:15:02.000Z",
  "deleted": true
}

Polls

GET/rooms/{room_id}/pollspolls:read

List polls

Polls asked in this room in the last 24 hours, newest first, with their counts. Voter names are never returned.

Path parameters

room_iduuidrequired
The room's id.

Returns A list of poll objects.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/polls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "poll",
      "id": "7c1f4a90-52d3-4f1e-9a6b-2e8c0d4f7b31",
      "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "question": "Ready to move on?",
      "kind": "single",
      "anonymous": false,
      "results": "after_close",
      "status": "open",
      "created_by": "API",
      "created_at": "2026-09-17T09:30:02.000Z",
      "closed_at": null,
      "total_voters": 12,
      "options": [
        {
          "id": "3b9d1c77-0a44-4f52-8f0e-1d2c3b4a5e60",
          "label": "Yes",
          "votes": 9
        },
        {
          "id": "9f2a5e31-7c08-4b63-9d1a-8e7f6c5b4a32",
          "label": "Not yet",
          "votes": 3
        }
      ]
    }
  ],
  "has_more": false
}
POST/rooms/{room_id}/pollspolls:write

Create a poll

Asks everyone in the meeting a question. It appears immediately for people in Deewan's meeting interface.

Path parameters

room_iduuidrequired
The room's id.

Body

questionstringrequired
Up to 240 characters.
optionsstring[]required
Two to ten answers, each up to 120 characters.
kind"single" | "multiple"
One answer, or several. Defaults to single.
anonymousboolean
When true, nobody — including hosts — learns who picked what.
results"live" | "after_vote" | "after_close"
When participants see the counts. Defaults to live.

Returns The created poll.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/polls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question":"Ready to move on?","options":["Yes","Not yet"],"results":"after_close"}'
Response
{
  "object": "poll",
  "id": "7c1f4a90-52d3-4f1e-9a6b-2e8c0d4f7b31",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "question": "Ready to move on?",
  "kind": "single",
  "anonymous": false,
  "results": "after_close",
  "status": "open",
  "created_by": "API",
  "created_at": "2026-09-17T09:30:02.000Z",
  "closed_at": null,
  "total_voters": 12,
  "options": [
    {
      "id": "3b9d1c77-0a44-4f52-8f0e-1d2c3b4a5e60",
      "label": "Yes",
      "votes": 9
    },
    {
      "id": "9f2a5e31-7c08-4b63-9d1a-8e7f6c5b4a32",
      "label": "Not yet",
      "votes": 3
    }
  ]
}
PATCH/polls/{poll_id}polls:write

Close or reopen a poll

Closing stops voting and reveals results that were hidden until the end.

Path parameters

poll_iduuidrequired
The poll's id.

Body

status"open" | "closed"required
The new state.

Returns The updated poll.

Request
curl -X PATCH "https://deewan.io/api/v1/polls/{poll_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"closed"}'
Response
{
  "object": "poll",
  "id": "7c1f4a90-52d3-4f1e-9a6b-2e8c0d4f7b31",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "question": "Ready to move on?",
  "kind": "single",
  "anonymous": false,
  "results": "after_close",
  "status": "closed",
  "created_by": "API",
  "created_at": "2026-09-17T09:30:02.000Z",
  "closed_at": "2026-09-17T09:31:10.000Z",
  "total_voters": 12,
  "options": [
    {
      "id": "3b9d1c77-0a44-4f52-8f0e-1d2c3b4a5e60",
      "label": "Yes",
      "votes": 9
    },
    {
      "id": "9f2a5e31-7c08-4b63-9d1a-8e7f6c5b4a32",
      "label": "Not yet",
      "votes": 3
    }
  ]
}
DELETE/polls/{poll_id}polls:write

Delete a poll

Removes the poll and its votes for everyone.

Path parameters

poll_iduuidrequired
The poll's id.

Returns { object: "poll", id, deleted: true }.

Request
curl -X DELETE "https://deewan.io/api/v1/polls/{poll_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "poll",
  "id": "7c1f4a90-52d3-4f1e-9a6b-2e8c0d4f7b31",
  "deleted": true
}

Breakout rooms

GET/rooms/{room_id}/breakoutsbreakouts:read

Get breakout rooms

The breakout session running in this meeting, with who is placed in each room and who is still unassigned, plus the ten most recent sessions. active is null when nothing is running.

Path parameters

room_iduuidrequired
The room's id.

Returns { object: "breakouts", room_id, active, history }, where active is a breakout_session.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "breakouts",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "active": {
    "object": "breakout_session",
    "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
    "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
    "status": "open",
    "auto_join": true,
    "allow_return": true,
    "self_select": false,
    "duration_seconds": 600,
    "started_at": "2026-09-17T10:00:00.000Z",
    "ends_at": "2026-09-17T10:10:00.000Z",
    "rooms": [
      {
        "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
        "name": "Room 1",
        "members": [
          {
            "id": "user_2fK9…",
            "name": "Salma",
            "present": true,
            "can_return": true
          },
          {
            "id": "api_Xk3mQp9Lr2",
            "name": "Omar",
            "present": true,
            "can_return": false
          }
        ]
      },
      {
        "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
        "name": "Room 2",
        "members": [
          {
            "id": "user_7Qa1…",
            "name": "Hana",
            "present": true,
            "can_return": true
          }
        ]
      }
    ],
    "unassigned": []
  },
  "history": [
    {
      "object": "breakout_session_summary",
      "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
      "status": "open",
      "started_by": "api",
      "started_at": "2026-09-17T10:00:00.000Z",
      "ends_at": "2026-09-17T10:10:00.000Z",
      "closed_at": null,
      "rooms": 2,
      "people": 3
    }
  ]
}
POST/rooms/{room_id}/breakoutsbreakouts:write

Start breakout rooms

Splits the people in the meeting into smaller private rooms. Each breakout has its own end-to-end encryption key, so nobody can join or decrypt a room they were not placed in. Only one session can be open at a time; a second start returns 409. Hosts stay in the main room unless include_hosts is set, and can visit any breakout.

Path parameters

room_iduuidrequired
The room's id.

Body

roomsinteger | string[]required
How many rooms (1–50), or their names. Unnamed rooms are called Room 1, Room 2, …
assign"auto" | "manual" | "none"
auto (default) deals everyone out evenly at random; manual uses placements; none opens empty rooms for people to choose from.
placements{ participant, room }[]
With assign: "manual": who goes where. participant is a participant id or a connection identity; room is a 0-based index into rooms. Anyone not in the meeting is ignored.
auto_joinboolean
Move people into their room without asking. Defaults to true.
allow_returnboolean
Let people go back to the main room by themselves. Defaults to true.
self_selectboolean
Let people pick their own room. Implied by assign: "none".
duration_secondsinteger | null
Close the rooms automatically after this long (60 to 14400). Omit to run until ended.
include_hostsboolean
Deal hosts into rooms too when using auto.

Returns The started breakout_session.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rooms":2,"assign":"auto","duration_seconds":600}'
Response
{
  "object": "breakout_session",
  "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "status": "open",
  "auto_join": true,
  "allow_return": true,
  "self_select": false,
  "duration_seconds": 600,
  "started_at": "2026-09-17T10:00:00.000Z",
  "ends_at": "2026-09-17T10:10:00.000Z",
  "rooms": [
    {
      "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
      "name": "Room 1",
      "members": [
        {
          "id": "user_2fK9…",
          "name": "Salma",
          "present": true,
          "can_return": true
        },
        {
          "id": "api_Xk3mQp9Lr2",
          "name": "Omar",
          "present": true,
          "can_return": false
        }
      ]
    },
    {
      "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
      "name": "Room 2",
      "members": [
        {
          "id": "user_7Qa1…",
          "name": "Hana",
          "present": true,
          "can_return": true
        }
      ]
    }
  ],
  "unassigned": []
}
POST/rooms/{room_id}/breakouts/assignmentsbreakouts:write

Move a participant

Places one person in a breakout room, moves them to another, or sends them back to the main room. It takes effect straight away for people who are connected, and holds for people who reconnect.

Path parameters

room_iduuidrequired
The room's id.

Body

participantstringrequired
The participant id, or a connection identity from GET /rooms/{room_id}/participants.
breakout_iduuid | nullrequired
The breakout room's id, or null for the main room.
can_returnboolean
Whether this person may go back to the main room by themselves. Defaults to the session's allow_return.

Returns The updated breakout_session.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/assignments" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"participant":"api_Xk3mQp9Lr2","breakout_id":"5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3"}'
Response
{
  "object": "breakout_session",
  "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "status": "open",
  "auto_join": true,
  "allow_return": true,
  "self_select": false,
  "duration_seconds": 600,
  "started_at": "2026-09-17T10:00:00.000Z",
  "ends_at": "2026-09-17T10:10:00.000Z",
  "rooms": [
    {
      "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
      "name": "Room 1",
      "members": [
        {
          "id": "user_2fK9…",
          "name": "Salma",
          "present": true,
          "can_return": true
        },
        {
          "id": "api_Xk3mQp9Lr2",
          "name": "Omar",
          "present": true,
          "can_return": false
        }
      ]
    },
    {
      "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
      "name": "Room 2",
      "members": [
        {
          "id": "user_7Qa1…",
          "name": "Hana",
          "present": true,
          "can_return": true
        }
      ]
    }
  ],
  "unassigned": []
}
POST/rooms/{room_id}/breakouts/roomsbreakouts:write

Add a room

Adds a room to the running session, with its own end-to-end key. Up to 50 rooms.

Path parameters

room_iduuidrequired
The room's id.

Body

namestring
Up to 60 characters. Defaults to "Room N".

Returns The updated breakout_session.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/rooms" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Room 3"}'
Response
{
  "object": "breakout_session",
  "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "status": "open",
  "auto_join": true,
  "allow_return": true,
  "self_select": false,
  "duration_seconds": 600,
  "started_at": "2026-09-17T10:00:00.000Z",
  "ends_at": "2026-09-17T10:10:00.000Z",
  "rooms": [
    {
      "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
      "name": "Room 1",
      "members": [
        {
          "id": "user_2fK9…",
          "name": "Salma",
          "present": true,
          "can_return": true
        },
        {
          "id": "api_Xk3mQp9Lr2",
          "name": "Omar",
          "present": true,
          "can_return": false
        }
      ]
    },
    {
      "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
      "name": "Room 2",
      "members": [
        {
          "id": "user_7Qa1…",
          "name": "Hana",
          "present": true,
          "can_return": true
        }
      ]
    }
  ],
  "unassigned": []
}
PATCH/rooms/{room_id}/breakouts/rooms/{breakout_id}breakouts:write

Rename a room

Renames a room. People inside see the new name at once.

Path parameters

room_iduuidrequired
The room's id.
breakout_iduuidrequired
The breakout room's id.

Body

namestringrequired
1–60 characters.

Returns The updated breakout_session.

Request
curl -X PATCH "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/rooms/{breakout_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Design review"}'
Response
{
  "object": "breakout_session",
  "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "status": "open",
  "auto_join": true,
  "allow_return": true,
  "self_select": false,
  "duration_seconds": 600,
  "started_at": "2026-09-17T10:00:00.000Z",
  "ends_at": "2026-09-17T10:10:00.000Z",
  "rooms": [
    {
      "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
      "name": "Room 1",
      "members": [
        {
          "id": "user_2fK9…",
          "name": "Salma",
          "present": true,
          "can_return": true
        },
        {
          "id": "api_Xk3mQp9Lr2",
          "name": "Omar",
          "present": true,
          "can_return": false
        }
      ]
    },
    {
      "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
      "name": "Room 2",
      "members": [
        {
          "id": "user_7Qa1…",
          "name": "Hana",
          "present": true,
          "can_return": true
        }
      ]
    }
  ],
  "unassigned": []
}
DELETE/rooms/{room_id}/breakouts/rooms/{breakout_id}breakouts:write

Remove a room

Removes a room from the running session. Anyone in it goes back to the main room. A session keeps at least one room.

Path parameters

room_iduuidrequired
The room's id.
breakout_iduuidrequired
The breakout room's id.

Returns The updated breakout_session.

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/rooms/{breakout_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "breakout_session",
  "id": "b3d9a7c2-6e41-4f08-8c15-0a7e52d1f9c6",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "status": "open",
  "auto_join": true,
  "allow_return": true,
  "self_select": false,
  "duration_seconds": 600,
  "started_at": "2026-09-17T10:00:00.000Z",
  "ends_at": "2026-09-17T10:10:00.000Z",
  "rooms": [
    {
      "id": "e14b07d9-3a52-4c6f-b8d1-92f6a0c73e58",
      "name": "Room 1",
      "members": [
        {
          "id": "user_2fK9…",
          "name": "Salma",
          "present": true,
          "can_return": true
        },
        {
          "id": "api_Xk3mQp9Lr2",
          "name": "Omar",
          "present": true,
          "can_return": false
        }
      ]
    },
    {
      "id": "5a0c9e21-77d4-4b3e-a1f8-c4d62b90e7a3",
      "name": "Room 2",
      "members": [
        {
          "id": "user_7Qa1…",
          "name": "Hana",
          "present": true,
          "can_return": true
        }
      ]
    }
  ],
  "unassigned": []
}
POST/rooms/{room_id}/breakouts/announcebreakouts:write

Broadcast a message

Shows a short message to everyone in the meeting and in every breakout room at once, for example "Five minutes left". Announcements are shown as a banner and are not end-to-end encrypted, so do not put anything private in them. Limited to ten a minute.

Path parameters

room_iduuidrequired
The room's id.

Body

messagestringrequired
Up to 300 characters.

Returns { object: "breakout_announcement", room_id, sent: true }.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/announce" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"Five minutes left."}'
Response
{
  "object": "breakout_announcement",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "sent": true
}
POST/rooms/{room_id}/breakouts/endbreakouts:write

End breakout rooms

Brings everyone back to the main room. With warn: true people see a 60-second countdown and the rooms close when it ends; otherwise they close at once. Ending the whole meeting also ends any open breakouts.

Path parameters

room_iduuidrequired
The room's id.

Body

warnboolean
Give a 60-second countdown first. Defaults to false.

Returns { object: "breakouts", room_id, ended, closing, ends_at }.

Request
curl -X POST "https://deewan.io/api/v1/rooms/$ROOM_ID/breakouts/end" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"warn":true}'
Response
{
  "object": "breakouts",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "ended": false,
  "closing": true,
  "ends_at": "2026-09-17T10:06:00.000Z"
}

Recordings

GET/recordingsrecordings:read

List recordings

Recordings made in this workspace's rooms, newest first.

Query parameters

room_iduuid
Only recordings from this room.
limitinteger
1–100, default 50.

Returns A list of recording objects.

Request
curl -X GET "https://deewan.io/api/v1/recordings" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "recording",
      "id": "e91c7d45-3a62-4b8f-9c0d-1a2b3c4d5e6f",
      "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "title": "Onboarding call",
      "status": "ready",
      "visibility": "room",
      "mime_type": "video/webm;codecs=vp9,opus",
      "parts": 14,
      "bytes": 65011712,
      "duration_ms": 1832000,
      "started_at": "2026-09-17T09:20:00.000Z",
      "ended_at": "2026-09-17T09:50:32.000Z"
    }
  ],
  "has_more": false
}
GET/recordings/{recording_id}recordings:read

Retrieve a recording

Metadata for one recording, including how many encrypted parts it has.

Path parameters

recording_iduuidrequired
The recording's id.

Returns A recording object.

Request
curl -X GET "https://deewan.io/api/v1/recordings/{recording_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "recording",
  "id": "e91c7d45-3a62-4b8f-9c0d-1a2b3c4d5e6f",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "title": "Onboarding call",
  "status": "ready",
  "visibility": "room",
  "mime_type": "video/webm;codecs=vp9,opus",
  "parts": 14,
  "bytes": 65011712,
  "duration_ms": 1832000,
  "started_at": "2026-09-17T09:20:00.000Z",
  "ended_at": "2026-09-17T09:50:32.000Z"
}
POST/recordings/{recording_id}/downloadrecordings:read

Get the parts and key

Everything needed to rebuild the file: the part URLs and the key for this one recording. Each part is a 12-byte IV followed by AES-256-GCM ciphertext, authenticated with deewan-recording:<recording id>:<index>. The SDK's recordings.download() does this for you. Treat the key like a password.

Path parameters

recording_iduuidrequired
The recording's id.

Returns A recording.download object.

Request
curl -X POST "https://deewan.io/api/v1/recordings/{recording_id}/download" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "recording.download",
  "id": "e91c7d45-3a62-4b8f-9c0d-1a2b3c4d5e6f",
  "mime_type": "video/webm;codecs=vp9,opus",
  "bytes": 65011712,
  "encryption": {
    "algorithm": "AES-256-GCM",
    "key": "xq7…",
    "key_encoding": "base64url",
    "iv_bytes": 12
  },
  "parts": [
    {
      "index": 0,
      "url": "https://deewan.io/api/v1/recordings/e91c7d45-3a62-4b8f-9c0d-1a2b3c4d5e6f/parts/0"
    }
  ]
}
GET/recordings/{recording_id}/parts/{index}recordings:read

Download one part

One encrypted part, exactly as stored. The response is binary, not JSON.

Path parameters

recording_iduuidrequired
The recording's id.
indexintegerrequired
Part number, starting at 0.

Returns application/octet-stream — IV + ciphertext.

Request
curl -X GET "https://deewan.io/api/v1/recordings/{recording_id}/parts/{index}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
"<binary>"
DELETE/recordings/{recording_id}recordings:write

Delete a recording

Deletes the recording and its stored parts. This cannot be undone.

Path parameters

recording_iduuidrequired
The recording's id.

Returns { object: "recording", id, deleted: true }.

Request
curl -X DELETE "https://deewan.io/api/v1/recordings/{recording_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "recording",
  "id": "e91c7d45-3a62-4b8f-9c0d-1a2b3c4d5e6f",
  "deleted": true
}

Transcripts

GET/rooms/{room_id}/sessions/{session_id}/transcripttranscripts:read

Get a transcript

What was said in one session of a room with settings.transcription on: every finished line with the speaker, their participant_ref and the time, and Deewan AI's summary (what the meeting was about and how it went, key points, follow-ups). The summary is written right after the meeting ends — transcript.ready fires when it's there — and is null until then.

Path parameters

room_iduuidrequired
The room's id.
session_idstringrequired
From the sessions list, or the session_id on a webhook.

Returns A transcript.

Request
curl -X GET "https://deewan.io/api/v1/rooms/$ROOM_ID/sessions/{session_id}/transcript" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "transcript",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "session_id": "RM_wQr8kE2mZpN",
  "summary": {
    "summary": "A first-round interview for the frontend role. Omar walked through two recent projects and a take-home exercise; the conversation was relaxed and he answered the system-design questions in depth.",
    "key_points": [
      "Five years of React, two leading a small team",
      "Prefers a hybrid schedule",
      "Available from December"
    ],
    "action_items": [
      "Sara sends the technical task by Thursday",
      "Omar shares two references"
    ]
  },
  "lines": [
    {
      "participant_ref": "api_Qm9vZ3YxN2d0",
      "speaker": "Sara Ahmed",
      "text": "Thanks for joining, Omar. Shall we start with your current role?",
      "lang": "en",
      "at": "2026-09-17T09:01:52.000Z"
    },
    {
      "participant_ref": "api_Wm9yYTE4MmFh",
      "speaker": "Omar Khalil",
      "text": "Sure. I lead the web team at a logistics startup…",
      "lang": "en",
      "at": "2026-09-17T09:01:58.000Z"
    }
  ]
}
DELETE/rooms/{room_id}/sessions/{session_id}/transcripttranscripts:write

Delete a transcript

Deletes a session's transcript and its summary for good.

Path parameters

room_iduuidrequired
The room's id.
session_idstringrequired
The session.

Returns The deleted transcript's ids.

Request
curl -X DELETE "https://deewan.io/api/v1/rooms/$ROOM_ID/sessions/{session_id}/transcript" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "transcript",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "session_id": "RM_wQr8kE2mZpN",
  "deleted": true
}

Webhooks

GET/webhookswebhooks:manage

List endpoints

Webhook endpoints in the key's scope.

Returns A list of webhook_endpoint objects.

Request
curl -X GET "https://deewan.io/api/v1/webhooks" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "webhook_endpoint",
      "id": "3c9e…",
      "url": "https://example.com/hooks/deewan",
      "description": null,
      "events": [
        "room.started"
      ],
      "enabled": true,
      "created_at": "2026-09-17T09:00:00.000Z"
    }
  ],
  "has_more": false
}
POST/webhookswebhooks:manage

Create an endpoint

Registers a public HTTPS endpoint. The response includes secret, shown only once — store it to verify signatures. Up to 10 endpoints per scope.

Body

urlstringrequired
A public https:// URL. Private and local addresses are refused.
eventsstring[]required
Event types to receive, or ["*"] for all.
descriptionstring | null
Up to 120 characters.
enabledboolean
Default true.

Returns The new webhook_endpoint plus secret.

Request
curl -X POST "https://deewan.io/api/v1/webhooks" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/hooks/deewan","events":["room.started","room.finished","participant.joined"]}'
Response
{
  "object": "webhook_endpoint",
  "id": "3c9e…",
  "url": "https://example.com/hooks/deewan",
  "description": null,
  "events": [
    "room.started",
    "room.finished",
    "participant.joined"
  ],
  "enabled": true,
  "created_at": "2026-09-17T09:00:00.000Z",
  "secret": "whsec_…"
}
PATCH/webhooks/{webhook_id}webhooks:manage

Update an endpoint

Change the URL, events, description, or pause it with enabled: false.

Path parameters

webhook_iduuidrequired
The endpoint's id.

Body

urlstring
A public https:// URL.
eventsstring[]
Replaces the event list.
descriptionstring | null
Up to 120 characters.
enabledboolean
Pause or resume deliveries.

Returns The updated webhook_endpoint.

Request
curl -X PATCH "https://deewan.io/api/v1/webhooks/$WEBHOOK_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'
Response
{
  "object": "webhook_endpoint",
  "id": "3c9e…",
  "url": "https://example.com/hooks/deewan",
  "description": null,
  "events": [
    "room.started"
  ],
  "enabled": false,
  "created_at": "2026-09-17T09:00:00.000Z"
}
DELETE/webhooks/{webhook_id}webhooks:manage

Delete an endpoint

Stops deliveries and deletes the endpoint.

Path parameters

webhook_iduuidrequired
The endpoint's id.

Returns The deleted endpoint with deleted: true.

Request
curl -X DELETE "https://deewan.io/api/v1/webhooks/$WEBHOOK_ID" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "webhook_endpoint",
  "id": "3c9e…",
  "deleted": true
}
POST/webhooks/{webhook_id}/testwebhooks:manage

Send a test event

Delivers a signed webhook.test event now and reports your endpoint's response.

Path parameters

webhook_iduuidrequired
The endpoint's id.

Returns { object: "webhook_test", ok, status }

Request
curl -X POST "https://deewan.io/api/v1/webhooks/$WEBHOOK_ID/test" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "webhook_test",
  "ok": true,
  "status": 200
}
GET/webhooks/{webhook_id}/deliverieswebhooks:manage

List deliveries

The 50 most recent delivery attempts, with outcome and your endpoint's status code.

Path parameters

webhook_iduuidrequired
The endpoint's id.

Returns A list of webhook_delivery objects.

Request
curl -X GET "https://deewan.io/api/v1/webhooks/$WEBHOOK_ID/deliveries" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "webhook_delivery",
      "id": "77aa…",
      "event_id": "evt_…",
      "event_type": "room.started",
      "status": "succeeded",
      "attempts": 1,
      "response_code": 200,
      "error": null,
      "created_at": "2026-09-17T09:20:00.000Z"
    }
  ],
  "has_more": false
}

Participant API

GET/participantroom token

Who this token is

The Participant API is what one person may do for themselves inside a meeting, for interfaces you build yourself. Send the participant's own room token (from POST /rooms/{room_id}/tokens) as Authorization: Bearer <token>, never an API key, so it's safe to call from a browser or an app; it allows any origin and never uses cookies. Each call checks the token's signature and that the person is in the meeting right now; a token works for up to 12 hours while they stay. Limited to 60 requests a minute per connection. The client SDKs call these for you.

Returns A participant.

Request
curl -X GET "https://deewan.io/api/v1/participant" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "participant",
  "identity": "api_Qm9vZ3Y.k2d9x0aa",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "name": "Omar",
  "role": "participant"
}
POST/participant/handroom token

Raise or lower your hand

Everyone sees it as the participant's hand attribute (when it went up). Hosts lower anyone's hand with the server API.

Body

raisedbooleanrequired
true to raise, false to lower.

Returns { object: "hand", raised }

Request
curl -X POST "https://deewan.io/api/v1/participant/hand" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"raised":true}'
Response
{
  "object": "hand",
  "raised": true
}
POST/participant/attributesroom token

Set your agent's attributes

Agent tokens only (kind: "agent"). Sets attributes on your own agent connection: LiveKit Agents' lk.agent.* keys (such as lk.agent.state: listening, thinking, speaking) and your own app.* keys (such as app.ends_at). Everyone in the meeting sees them; the client SDKs show them on agents(). An empty string removes a key. Agents can't set attributes directly on the media server, because that would let any connection rewrite role; other keys are refused here.

Body

attributesobjectrequired
1–10 keys, lk.agent.* or app.*; string values up to 512 characters, 4 KB in all.

Returns { object: "participant_attributes", attributes }

Request
curl -X POST "https://deewan.io/api/v1/participant/attributes" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"attributes":{"lk.agent.state":"speaking"}}'
Response
{
  "object": "participant_attributes",
  "attributes": {
    "lk.agent.state": "speaking"
  }
}
GET/participant/pollsroom token

List the meeting's polls

As this participant may see them: results stay hidden until the poll's rule allows (after_vote, after_close), and who voted for what is never shown here. When something changes, clients get a nudge on the poll data topic.

Returns A list of poll objects.

Request
curl -X GET "https://deewan.io/api/v1/participant/polls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "poll",
      "id": "c0f1…",
      "question": "Ship it?",
      "kind": "single",
      "anonymous": false,
      "results": "after_vote",
      "status": "open",
      "voted": false,
      "show_results": false,
      "total_voters": 0,
      "options": [
        {
          "id": "9a2e…",
          "label": "Yes",
          "votes": 0,
          "mine": false
        }
      ]
    }
  ]
}
POST/participant/polls/{poll_id}/votesroom token

Vote in a poll

Votes in an open poll of this meeting; voting again replaces the earlier answer. A closed poll returns 409.

Path parameters

poll_iduuidrequired
The poll's id.

Body

option_idsstring[]required
One option for a single-choice poll, up to 10 for multiple choice.

Returns { object: "vote", poll_id, option_ids }

Request
curl -X POST "https://deewan.io/api/v1/participant/polls/{poll_id}/votes" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"option_ids":["9a2e…"]}'
Response
{
  "object": "vote",
  "poll_id": "c0f1…",
  "option_ids": [
    "9a2e…"
  ]
}
POST/participant/captionsroom token

Turn live captions on or off

Caption lines arrive on the caption data topic. Not available in strict rooms (409).

Body

onbooleanrequired
true to turn on.

Returns { object: "captions", on }

Request
curl -X POST "https://deewan.io/api/v1/participant/captions" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on":true}'
Response
{
  "object": "captions",
  "on": true
}
POST/participant/still-hereroom token

Answer "still here?"

Someone alone in a meeting for the room's idle_timeout_minutes receives { type: "alone_check", seconds } on the system data topic; calling this within those seconds keeps them in, and the clock starts again. Otherwise they get { type: "alone" } and are removed. Tokens with max_duration_seconds get { type: "time_warning", seconds } two minutes before their end and { type: "time_up" } at it. The client SDKs surface these as aloneCheck, timeWarning and the alone / time_up leave reasons.

Returns { object: "still_here", ok: true }

Request
curl -X POST "https://deewan.io/api/v1/participant/still-here" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "still_here",
  "ok": true
}
POST/participant/e2eeroom token

Relay strict-room keys

The postbox for strict rooms' key exchange: hand the meeting key, sealed to each recipient's exchange key (ECDH P-256, HKDF-SHA-256, AES-256-GCM), to people in the room, or ask for it. Deewan relays ciphertext it can't open. The client SDKs do all of this; you only need it to write your own client.

Body

deliver{ to, box }[]
Sealed keys for particular people (up to 50).
needboolean
Ask the people who have the key to send it.

Returns { object: "e2ee_relay", delivered }

Request
curl -X POST "https://deewan.io/api/v1/participant/e2ee" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"need":true}'
Response
{
  "object": "e2ee_relay",
  "delivered": 0
}

Chat users

POST/userschat:write

Create or update a user

Someone in your app, known by your own id. Creating an existing id updates them, so call it whenever someone signs in. Users are separate per environment: test keys never see live users.

Body

idstringrequired
Your own id: letters, digits and _ . @ : -, up to 128.
namestring
Shown to others (up to 120).
imagestring
An https:// picture.
metadataobject
Your own data, up to 8 KB.

Returns A chat_user.

Request
curl -X POST "https://deewan.io/api/v1/users" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"user_123","name":"Sara Ahmed","image":"https://cdn.example.com/sara.jpg","metadata":{"plan":"pro"}}'
Response
{
  "object": "chat_user",
  "id": "user_123",
  "name": "Sara Ahmed",
  "image": "https://cdn.example.com/sara.jpg",
  "metadata": {
    "plan": "pro"
  },
  "created_at": "2026-11-25T09:00:00.000Z",
  "updated_at": "2026-11-25T09:00:00.000Z"
}
POST/users/{user_id}/tokenchat:write

Create a user token

Credentials for this user's device (browser or app) to use chat and calls as them, and nothing else: the client API below, connectChat in @deewanio/sdk/client. Never put your API key on a device; your server makes this token after it has signed the person in. It expires (1 hour by default, at most 24); the SDK asks your server for a new one. Revoking the API key that made it ends it within 30 seconds; deleting the user ends it at once.

Path parameters

user_idstringrequired
Your own id for the user.

Body

expires_ininteger
Seconds, 60–86400. Default 3600.

Returns A chat_user_token.

Request
curl -X POST "https://deewan.io/api/v1/users/{user_id}/token" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expires_in":3600}'
Response
{
  "object": "chat_user_token",
  "user_id": "user_123",
  "token": "dwu_eyJ2IjoxLCJrIjoi…",
  "expires_at": "2026-11-25T10:00:00.000Z"
}
GET/users/{user_id}chat:read

Retrieve a user

The user, and whether they're connected right now (online).

Path parameters

user_idstringrequired
Your own id for the user.

Returns A chat_user with online.

Request
curl -X GET "https://deewan.io/api/v1/users/{user_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "chat_user",
  "id": "user_123",
  "name": "Sara Ahmed",
  "image": "https://cdn.example.com/sara.jpg",
  "metadata": {
    "plan": "pro"
  },
  "created_at": "2026-11-25T09:00:00.000Z",
  "updated_at": "2026-11-25T09:00:00.000Z",
  "online": true
}
PATCH/users/{user_id}chat:write

Update a user

Change a user's name, picture or metadata; the people they chat with see it.

Path parameters

user_idstringrequired
Your own id for the user.

Body

namestring
Up to 120.
imagestring
An https:// picture; null clears it.
metadataobject
Replaces it.

Returns A chat_user.

Request
curl -X PATCH "https://deewan.io/api/v1/users/{user_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Sara A."}'
Response
{
  "object": "chat_user",
  "id": "user_123",
  "name": "Sara A.",
  "image": "https://cdn.example.com/sara.jpg",
  "metadata": {
    "plan": "pro"
  },
  "created_at": "2026-11-25T09:00:00.000Z",
  "updated_at": "2026-11-25T09:00:00.000Z"
}
GET/userschat:read

List users

Your app's users, by id.

Query parameters

limitinteger
1–100, default 50.
starting_afterstring
A user id: the page after it.

Returns A list of chat_user.

Request
curl -X GET "https://deewan.io/api/v1/users" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "chat_user",
      "id": "user_123",
      "name": "Sara Ahmed",
      "image": "https://cdn.example.com/sara.jpg",
      "metadata": {
        "plan": "pro"
      },
      "created_at": "2026-11-25T09:00:00.000Z",
      "updated_at": "2026-11-25T09:00:00.000Z"
    }
  ],
  "has_more": false
}
DELETE/users/{user_id}chat:write

Delete a user

Removes the user, their memberships, reactions and tokens. Their messages stay in their channels, without a sender, so conversations still read.

Path parameters

user_idstringrequired
Your own id for the user.

Returns { object: "chat_user", id, deleted: true }

Request
curl -X DELETE "https://deewan.io/api/v1/users/{user_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "chat_user",
  "id": "user_123",
  "deleted": true
}

Channels

POST/channelschat:write

Create a channel

A 1:1 (direct, exactly two members; asking again returns the same channel) or a group (up to 1000). Created by your server, a group's members are all admins until you set roles; created by a user (client API), its creator is its admin.

Body

kind"direct" | "group"required
One to one, or a group.
membersstring[]required
User ids (they must exist).
namestring
Groups: up to 120.
imagestring
An https:// picture.
external_idstring
Your own id for it (a class, an order, a team): you can use it wherever a channel id goes.
metadataobject
Your own data, up to 8 KB.

Returns A channel.

Request
curl -X POST "https://deewan.io/api/v1/channels" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"group","members":["teacher_1","user_123"],"name":"Grade 10 · Physics","external_id":"class-42"}'
Response
{
  "object": "channel",
  "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "external_id": "class-42",
  "kind": "group",
  "name": "Grade 10 · Physics",
  "image": null,
  "metadata": {},
  "frozen": false,
  "members": [
    {
      "user_id": "teacher_1",
      "role": "admin",
      "last_read_seq": 12
    },
    {
      "user_id": "user_123",
      "role": "member",
      "last_read_seq": 10
    }
  ],
  "last_seq": 12,
  "last_message_at": "2026-11-25T09:20:00.000Z",
  "created_at": "2026-11-25T09:00:00.000Z"
}
GET/channelschat:read

List channels

Newest activity first.

Query parameters

userstring
Only this user's channels.
limitinteger
1–100, default 30.
beforestring
An ISO time: channels last active before it (the next page).

Returns A list of channel.

Request
curl -X GET "https://deewan.io/api/v1/channels" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "channel",
      "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
      "external_id": "class-42",
      "kind": "group",
      "name": "Grade 10 · Physics",
      "image": null,
      "metadata": {},
      "frozen": false,
      "members": [
        {
          "user_id": "teacher_1",
          "role": "admin",
          "last_read_seq": 12
        },
        {
          "user_id": "user_123",
          "role": "member",
          "last_read_seq": 10
        }
      ],
      "last_seq": 12,
      "last_message_at": "2026-11-25T09:20:00.000Z",
      "created_at": "2026-11-25T09:00:00.000Z"
    }
  ],
  "has_more": false
}
GET/channels/{channel_id}chat:read

Retrieve a channel

With its members, their roles and how far each has read.

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Returns A channel.

Request
curl -X GET "https://deewan.io/api/v1/channels/{channel_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "channel",
  "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "external_id": "class-42",
  "kind": "group",
  "name": "Grade 10 · Physics",
  "image": null,
  "metadata": {},
  "frozen": false,
  "members": [
    {
      "user_id": "teacher_1",
      "role": "admin",
      "last_read_seq": 12
    },
    {
      "user_id": "user_123",
      "role": "member",
      "last_read_seq": 10
    }
  ],
  "last_seq": 12,
  "last_message_at": "2026-11-25T09:20:00.000Z",
  "created_at": "2026-11-25T09:00:00.000Z"
}
PATCH/channels/{channel_id}chat:write

Update a channel

Rename it, change its picture or metadata, or frozen: true: only your server can post (announcements, a closed thread).

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Body

namestring
Up to 120; null clears it.
imagestring
An https:// picture; null clears it.
metadataobject
Replaces it.
frozenboolean
Only your server may post.

Returns A channel.

Request
curl -X PATCH "https://deewan.io/api/v1/channels/{channel_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"frozen":true}'
Response
{
  "object": "channel",
  "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "external_id": "class-42",
  "kind": "group",
  "name": "Grade 10 · Physics",
  "image": null,
  "metadata": {},
  "frozen": true,
  "members": [
    {
      "user_id": "teacher_1",
      "role": "admin",
      "last_read_seq": 12
    },
    {
      "user_id": "user_123",
      "role": "member",
      "last_read_seq": 10
    }
  ],
  "last_seq": 12,
  "last_message_at": "2026-11-25T09:20:00.000Z",
  "created_at": "2026-11-25T09:00:00.000Z"
}
POST/channels/{channel_id}/memberschat:write

Add or remove members

Groups only. role applies to those added (and changes the role of anyone already in).

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Body

addstring[]
User ids to add.
removestring[]
User ids to remove.
role"admin" | "member"
For those added. Default member.

Returns A channel.

Request
curl -X POST "https://deewan.io/api/v1/channels/{channel_id}/members" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"add":["user_456"]}'
Response
{
  "object": "channel",
  "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "external_id": "class-42",
  "kind": "group",
  "name": "Grade 10 · Physics",
  "image": null,
  "metadata": {},
  "frozen": false,
  "members": [
    {
      "user_id": "teacher_1",
      "role": "admin",
      "last_read_seq": 12
    },
    {
      "user_id": "user_123",
      "role": "member",
      "last_read_seq": 10
    }
  ],
  "last_seq": 12,
  "last_message_at": "2026-11-25T09:20:00.000Z",
  "created_at": "2026-11-25T09:00:00.000Z"
}
DELETE/channels/{channel_id}chat:write

Delete a channel

With all its messages, for everyone.

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Returns { object: "channel", id, deleted: true }

Request
curl -X DELETE "https://deewan.io/api/v1/channels/{channel_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "channel",
  "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "deleted": true
}

Messages

POST/channels/{channel_id}/messageschat:write

Send a message

From your server: as the system (no user_id: user_id is null in the message) or on behalf of a member (a bot, an import). Everyone in the channel gets it live; message.created goes to your webhooks with the members, so you can push-notify phones.

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Body

textstring
Up to 8000 characters. Text, attachments, or both.
attachmentsarray
Up to 10 files you host: { url, type?, name?, size?, width?, height?, duration? }; https:// URLs only. Deewan never fetches them.
reply_tostring
A message in the same channel this replies to.
metadataobject
Your own data, up to 8 KB.
idstring
Your own UUID for the message: sending again with the same id returns the same message, so retries are safe.
user_idstring
Post as this member.

Returns A message.

Request
curl -X POST "https://deewan.io/api/v1/channels/{channel_id}/messages" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Homework is due Sunday."}'
Response
{
  "object": "message",
  "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "seq": 13,
  "user_id": null,
  "text": "Homework is due Sunday.",
  "attachments": [],
  "reply_to": null,
  "metadata": {},
  "reactions": {
    "👍": [
      "teacher_1"
    ]
  },
  "created_at": "2026-11-25T09:21:00.000Z",
  "edited_at": null,
  "deleted": false
}
GET/channels/{channel_id}/messageschat:read

List messages

Oldest first within the page. Every message has a seq (1, 2, 3… per channel): page back with before, catch up after a reconnect with after.

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Query parameters

beforeinteger
Messages with a lower seq (older).
afterinteger
Messages with a higher seq (newer).
limitinteger
1–200, default 50.

Returns A list of message.

Request
curl -X GET "https://deewan.io/api/v1/channels/{channel_id}/messages" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "message",
      "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
      "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
      "seq": 13,
      "user_id": "user_123",
      "text": "Is the homework due Sunday?",
      "attachments": [],
      "reply_to": null,
      "metadata": {},
      "reactions": {
        "👍": [
          "teacher_1"
        ]
      },
      "created_at": "2026-11-25T09:21:00.000Z",
      "edited_at": null,
      "deleted": false
    }
  ],
  "has_more": true
}
PATCH/messages/{message_id}chat:write

Edit a message

Sets edited_at; everyone in the channel sees the change live.

Path parameters

message_idstringrequired
The message's id.

Body

textstring
The new text.
metadataobject
Replaces it.

Returns A message.

Request
curl -X PATCH "https://deewan.io/api/v1/messages/{message_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Homework is due Monday."}'
Response
{
  "object": "message",
  "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "seq": 13,
  "user_id": "user_123",
  "text": "Is the homework due Sunday?",
  "attachments": [],
  "reply_to": null,
  "metadata": {},
  "reactions": {
    "👍": [
      "teacher_1"
    ]
  },
  "created_at": "2026-11-25T09:21:00.000Z",
  "edited_at": "2026-11-25T09:25:00.000Z",
  "deleted": false
}
DELETE/messages/{message_id}chat:write

Delete a message

Erases its text, attachments, metadata and reactions from Deewan's servers; the slot stays as deleted: true so the conversation keeps its shape.

Path parameters

message_idstringrequired
The message's id.

Returns The message, deleted.

Request
curl -X DELETE "https://deewan.io/api/v1/messages/{message_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "message",
  "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "seq": 13,
  "user_id": "user_123",
  "text": null,
  "attachments": [],
  "reply_to": null,
  "metadata": {},
  "reactions": {},
  "created_at": "2026-11-25T09:21:00.000Z",
  "edited_at": null,
  "deleted": true
}

Calls

POST/callscalls:write

Start a call

Rings a channel's members or a list of users, for 45 seconds. Connected devices get call.ringing live; call.ringing also goes to your webhooks with who to ring, so you can push-notify phones. Each call is its own Deewan room (room_id, single use, members only), so recording, breakout rooms, polls, captions and moderation work on it through the room APIs. encryption: "strict": the call's key is made and kept on the devices, never on Deewan's servers. Calling a channel that already has a call returns that call.

Body

channel_idstring
Ring this channel's members (or give members).
membersstring[]
Ring these users (up to 100).
fromstring
The user calling (they're joined; the others ring).
kind"audio" | "video"
Default video.
encryption"standard" | "strict"
Default standard.

Returns A call.

Request
curl -X POST "https://deewan.io/api/v1/calls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id":"8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10","from":"teacher_1","kind":"video"}'
Response
{
  "object": "call",
  "id": "4e2a9b7c-1d3f-4a5e-9b8c-7d6e5f4a3b21",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "kind": "video",
  "status": "ringing",
  "encryption": "standard",
  "created_by": "teacher_1",
  "members": [
    {
      "user_id": "teacher_1",
      "state": "joined"
    },
    {
      "user_id": "user_123",
      "state": "invited"
    }
  ],
  "created_at": "2026-11-25T09:30:00.000Z",
  "answered_at": null,
  "ended_at": null
}
GET/calls/{call_id}chat:read

Retrieve a call

status: ringing → active → ended, or missed / declined. Each member's state: invited, joined, declined, left.

Path parameters

call_idstringrequired
The call's id.

Returns A call.

Request
curl -X GET "https://deewan.io/api/v1/calls/{call_id}" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "call",
  "id": "4e2a9b7c-1d3f-4a5e-9b8c-7d6e5f4a3b21",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "kind": "video",
  "status": "active",
  "encryption": "standard",
  "created_by": "teacher_1",
  "members": [
    {
      "user_id": "teacher_1",
      "state": "joined"
    },
    {
      "user_id": "user_123",
      "state": "invited"
    }
  ],
  "created_at": "2026-11-25T09:30:00.000Z",
  "answered_at": "2026-11-25T09:30:08.000Z",
  "ended_at": null
}
GET/callschat:read

List calls

Newest first; a call history for a channel with channel_id.

Query parameters

channel_idstring
Only this channel's calls.
limitinteger
1–100, default 30.

Returns A list of call.

Request
curl -X GET "https://deewan.io/api/v1/calls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "call",
      "id": "4e2a9b7c-1d3f-4a5e-9b8c-7d6e5f4a3b21",
      "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
      "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
      "kind": "video",
      "status": "ringing",
      "encryption": "standard",
      "created_by": "teacher_1",
      "members": [
        {
          "user_id": "teacher_1",
          "state": "joined"
        },
        {
          "user_id": "user_123",
          "state": "invited"
        }
      ],
      "created_at": "2026-11-25T09:30:00.000Z",
      "answered_at": null,
      "ended_at": null
    }
  ],
  "has_more": false
}
POST/calls/{call_id}/endcalls:write

End a call

Ends it for everyone (a ringing call becomes missed).

Path parameters

call_idstringrequired
The call's id.

Returns A call.

Request
curl -X POST "https://deewan.io/api/v1/calls/{call_id}/end" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "call",
  "id": "4e2a9b7c-1d3f-4a5e-9b8c-7d6e5f4a3b21",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "kind": "video",
  "status": "ended",
  "encryption": "standard",
  "created_by": "teacher_1",
  "members": [
    {
      "user_id": "teacher_1",
      "state": "joined"
    },
    {
      "user_id": "user_123",
      "state": "invited"
    }
  ],
  "created_at": "2026-11-25T09:30:00.000Z",
  "answered_at": null,
  "ended_at": "2026-11-25T09:45:00.000Z"
}

Chat client API

GET/chat/eventsuser token

Live events

Server-sent events for this user: hello, message.new, message.updated, message.deleted, read, typing, channel.created, channel.updated, channel.deleted, call.ringing, call.updated. Send the token as Authorization: Bearer, or as ?token= where headers aren't possible (browser EventSource). Reconnect when it drops and catch up with GET …/messages?after=. connectChat does all of this for you.

Returns text/event-stream

Request
curl -X GET "https://deewan.io/api/v1/chat/events" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "type": "message.new",
  "message": {
    "object": "message",
    "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
    "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
    "seq": 13,
    "user_id": "user_123",
    "text": "Is the homework due Sunday?",
    "attachments": [],
    "reply_to": null,
    "metadata": {},
    "reactions": {
      "👍": [
        "teacher_1"
      ]
    },
    "created_at": "2026-11-25T09:21:00.000Z",
    "edited_at": null,
    "deleted": false
  }
}
GET/chat/channelsuser token

Your channels

The token's user's channels, newest activity first. POST the same path to start a 1:1 or a group (you're its admin). Also: GET/PATCH /chat/channels/{id}, POST /chat/channels/{id}/members (admins add/remove; anyone leaves), POST /chat/channels/{id}/read { seq }, POST /chat/channels/{id}/typing.

Returns A list of channel.

Request
curl -X GET "https://deewan.io/api/v1/chat/channels" \
  -H "Authorization: Bearer $DEEWAN_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "channel",
      "id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
      "external_id": "class-42",
      "kind": "group",
      "name": "Grade 10 · Physics",
      "image": null,
      "metadata": {},
      "frozen": false,
      "members": [
        {
          "user_id": "teacher_1",
          "role": "admin",
          "last_read_seq": 12
        },
        {
          "user_id": "user_123",
          "role": "member",
          "last_read_seq": 10
        }
      ],
      "last_seq": 12,
      "last_message_at": "2026-11-25T09:20:00.000Z",
      "created_at": "2026-11-25T09:00:00.000Z"
    }
  ],
  "has_more": false
}
POST/chat/channels/{channel_id}/messagesuser token

Send as yourself

In channels you're in (not frozen ones). Up to 30 messages in 10 seconds. Also: GET the same path for history, PATCH/DELETE /chat/messages/{id} for your own messages (admins delete any), POST /chat/messages/{id}/reactions { emoji, on }.

Path parameters

channel_idstringrequired
The channel's id, or your external_id for it.

Body

textstring
Up to 8000 characters. Text, attachments, or both.
attachmentsarray
Up to 10 files you host: { url, type?, name?, size?, width?, height?, duration? }; https:// URLs only. Deewan never fetches them.
reply_tostring
A message in the same channel this replies to.
metadataobject
Your own data, up to 8 KB.
idstring
Your own UUID for the message: sending again with the same id returns the same message, so retries are safe.

Returns A message.

Request
curl -X POST "https://deewan.io/api/v1/chat/channels/{channel_id}/messages" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Is the homework due Sunday?"}'
Response
{
  "object": "message",
  "id": "c1d7a9e2-0b4f-4d3a-8e21-5f6a7b8c9d00",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "seq": 13,
  "user_id": "user_123",
  "text": "Is the homework due Sunday?",
  "attachments": [],
  "reply_to": null,
  "metadata": {},
  "reactions": {
    "👍": [
      "teacher_1"
    ]
  },
  "created_at": "2026-11-25T09:21:00.000Z",
  "edited_at": null,
  "deleted": false
}
POST/chat/callsuser token

Call someone

Ring a channel you're in or people in your app (10 a minute). Then POST /chat/calls/{id}/accept, /decline, /leave, and /token ({ exchange_key } for strict calls) for your media credentials: pass them to joinMeeting, or use chat.calls.join(call), which does every step.

Body

channel_idstring
Or members.
membersstring[]
User ids.
kind"audio" | "video"
Default video.
encryption"standard" | "strict"
Default standard.

Returns A call.

Request
curl -X POST "https://deewan.io/api/v1/chat/calls" \
  -H "Authorization: Bearer $DEEWAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"members":["teacher_1"],"kind":"audio"}'
Response
{
  "object": "call",
  "id": "4e2a9b7c-1d3f-4a5e-9b8c-7d6e5f4a3b21",
  "channel_id": "8b1f0c52-6a1e-4c1d-9e0a-3c2b7d1e9f10",
  "room_id": "5f0c2b8e-1d7a-4c52-9a0e-2f3b7c1d9e44",
  "kind": "audio",
  "status": "ringing",
  "encryption": "standard",
  "created_by": "user_123",
  "members": [
    {
      "user_id": "teacher_1",
      "state": "joined"
    },
    {
      "user_id": "user_123",
      "state": "invited"
    }
  ],
  "created_at": "2026-11-25T09:30:00.000Z",
  "answered_at": null,
  "ended_at": null
}