Interviews and appointments
Schedule a call, send each person their own link, and know who came and for how long — end to end.
Job interviews, tutoring sessions, consultations: one call between people your platform already knows. This is the whole flow — your app schedules it, sends the links in its own emails, and learns afterwards who joined, when, and for how long. Nobody needs a Deewan account, and with branding: "none" the meeting pages don't show Deewan at all.
1. Create the room and schedule it
import { Deewan } from "@deewanio/sdk";
const deewan = new Deewan({ apiKey: process.env.DEEWAN_API_KEY! });
// One room per interview. "members" means the room's own code doesn't let
// anyone in: only the personal links you create below do. "transcription"
// keeps what was said, with a Deewan AI summary (everyone in the call is told).
const room = await deewan.rooms.create({
name: `Interview — ${candidate.name}`,
settings: { access: "members", recordings: "workspace", transcription: true },
});
// On the workspace calendar, and in the key creator's Google or Outlook calendar.
const meeting = await deewan.meetings.create({
title: `Interview — ${candidate.name}`,
room_id: room.id,
starts_at: "2026-11-03T10:00:00+03:00",
ends_at: "2026-11-03T10:45:00+03:00",
timezone: "Asia/Riyadh",
});2. A link for each person
Each person gets their own link with their name and role in it. Make it last until the call is over (up to 30 days ahead). With your own user_id, the response has a participant_ref: save it with that person — every webhook and attendance row about them carries the same ref.
const expires_in = Math.ceil((Date.parse(meeting.ends_at) - Date.now()) / 1000) + 3600;
const common = { expires_in, branding: "none" as const, redirect_url: `https://jobs.example.com/interviews/${interview.id}/done` };
const recruiterLink = await deewan.rooms.createJoinLink(room.id, { ...common, name: recruiter.name, role: "host", user_id: recruiter.id });
const candidateLink = await deewan.rooms.createJoinLink(room.id, { ...common, name: candidate.name, user_id: candidate.id });
await db.interviews.update(interview.id, {
roomId: room.id,
recruiterRef: recruiterLink.participant_ref,
candidateRef: candidateLink.participant_ref,
});
// Your own emails, in your own words and design:
await sendEmail(candidate.email, { subject: "Your interview", joinUrl: candidateLink.url, startsAt: meeting.starts_at });3. Follow it live
Subscribe to participant.joined, participant.left and room.finished (see Webhooks). Each event has the room, the session_id of this run of the meeting, and the participant's participant_ref — enough to show "the candidate is waiting" in your app, or to nudge an interviewer who hasn't joined.
4. Afterwards: attendance and recording
// In your webhook handler (verify the signature first — see Webhooks).
if (event.type === "room.finished") {
const interview = await db.interviews.findByRoom(event.data.room.id);
const { data: people } = await deewan.rooms.attendance(event.data.room.id, event.data.session_id);
const candidate = people.find((p) => p.participant_ref === interview.candidateRef);
await db.interviews.update(interview.id, {
candidateAttended: Boolean(candidate),
candidateMinutes: candidate ? Math.round(candidate.seconds / 60) : 0,
reconnects: candidate ? candidate.visits - 1 : 0,
});
}
// The transcript and Deewan AI's summary: what was said, how it went, follow-ups.
if (event.type === "transcript.ready") {
const interview = await db.interviews.findByRoom(event.data.room.id);
const { summary, lines } = await deewan.rooms.transcript(event.data.room.id, event.data.session_id);
await db.interviews.update(interview.id, { summary: summary?.summary, keyPoints: summary?.key_points, transcript: lines });
}
if (event.type === "recording.ready") {
// Download and decrypt it on your side (see Recordings).
}Building your own call screen instead of using the hosted page? Create tokens (rooms.createToken) and use the web, React Native or Flutter SDK. Tokens take max_duration_seconds to cap a call; everything above — webhooks, sessions, attendance, participant_ref — works the same.