Back to Blog
Technical

How to Add One-Way Video Interviews to Your ATS

A step-by-step tutorial: record candidate answers in the browser with the VIDTREO SDK, tie each one to the candidate record, and get the transcript into your ATS by webhook.

Christian Segovia November 3, 2026 8 min read

To add one-way video interviews to your ATS, put a browser recorder on the question screen, attach the candidate’s IDs to each recording, and receive the transcript by webhook into the candidate record. With VIDTREO, a video and audio recording API for web apps, that is one component and one webhook handler, and it costs from $0.008 per recorded minute of video with storage and AI transcription included.

This tutorial uses the React SDK. Vue, Nuxt, Web Components and vanilla JavaScript follow the same steps; the installation guide lists each package.

What do you need before you start?

  • A VIDTREO account. Every new account gets $1 of free credit (about 100 HD minutes), with no credit card.
  • An API key, from Settings → API Keys in the dashboard.
  • AI transcription turned on for your environment (Settings → General → AI Transcription). Recordings that complete after you turn it on are transcribed automatically.
  • A webhook endpoint subscribed to transcriptions.transcription.completed, from the environment’s Webhook tab. Copy the signing secret (whsec_...) when it’s shown: it’s displayed once.

Install the packages:

npm install @vidtreo/recorder-react @vidtreo/recorder

How do you show the question and record the answer?

Render one recorder per question. recordingPrompt shows the question while the candidate records, maxRecordingTime caps the answer (in milliseconds) and countdownDuration gives them a few seconds to get ready.

import { VidtreoRecorder } from "@vidtreo/recorder-react";

export function InterviewQuestion({ candidateId, jobId, question, onAnswered }) {
  return (
    <VidtreoRecorder
      apiKey={import.meta.env.VITE_VIDTREO_API_KEY}
      recordingPrompt={{ text: question.text }}
      countdownDuration={3_000}
      maxRecordingTime={120_000}
      userMetadata={{ candidateId, jobId, questionId: question.id }}
      onUploadComplete={(result) => onAnswered(question.id, result.recordingId)}
      onError={(error) => console.error("Recording error:", error)}
    />
  );
}

The candidate sees the question, records, and can switch cameras in the middle of a take. VIDTREO encodes the video on their device, verifies the file before upload and uploads it through a queue that survives dropped connections and page reloads. If the camera is blocked, the recorder explains how to allow it again instead of showing a dead-end error.

If your ATS front end isn’t React, the Web Component works in any page:

<script type="module" src="https://cdn.jsdelivr.net/npm/@vidtreo/recorder-wc@latest/dist/vidtreo-recorder.js"></script>

<vidtreo-recorder api-key="your-api-key" id="recorder"></vidtreo-recorder>

<script>
  document.getElementById("recorder").addEventListener("upload-complete", (e) => {
    console.log("Recording uploaded:", e.detail);
  });
</script>

How do you tie each recording to the candidate?

Through userMetadata. Whatever JSON you pass there is stored with the recording and echoed back verbatim in data.video.userMetadata of every webhook. Use the IDs your ATS already has (candidate, job, pipeline stage, question) and your handler never needs a lookup table.

Keep the recordingId from onUploadComplete too: it is the recording’s identifier for the API and the dashboard.

How do you get the transcript into the ATS?

When the transcript is ready, VIDTREO sends transcriptions.transcription.completed to your endpoint. The payload carries the transcript’s language and word count, your userMetadata, and links to three files: vtt (captions), json (word-level timestamps) and txt (plain text).

app.post("/webhooks/vidtreo", async (req, res) => {
  if (!isFromVidtreo(req.rawBody, req.headers["x-webhook-signature"], process.env.VIDTREO_WEBHOOK_SECRET)) {
    return res.status(401).end();
  }

  if (req.headers["x-vidtreo-event-type"] === "transcriptions.transcription.completed") {
    const { video, files } = req.body.data;
    const { candidateId, questionId } = video.userMetadata;

    const txt = files.find((file) => file.format === "txt");
    const transcript = await fetch(txt.url).then((r) => r.text());

    await ats.saveAnswer(candidateId, questionId, { videoId: video.id, transcript });
  }

  return res.status(200).end();
});

The file links are presigned and expire 5 minutes after the delivery is generated, so download what you need when the event arrives and store it on your side. You can fetch fresh links later from GET /api/v1/videos/{videoId}/transcription. Respond with a 2xx quickly and do heavy work afterwards; use the X-Vidtreo-Event-Id header to ignore redeliveries.

How do you verify the webhook came from VIDTREO?

Every delivery is signed with HMAC-SHA256 of the raw request body, in the X-Webhook-Signature header. Compute the HMAC over the raw body, before any JSON parsing, and compare in constant time:

import { createHmac, timingSafeEqual } from "node:crypto";

function isFromVidtreo(rawBody: string, signature: string, secret: string) {
  const expected = `sha256=${createHmac("sha256", secret).update(rawBody).digest("hex")}`;
  const a = Buffer.from(signature);
  const b = Buffer.from(expected);
  return a.length === b.length && timingSafeEqual(a, b);
}

How do you score answers against your rubric?

With VIDTREO Intelligence. You describe the criteria in a lens (for example, the evidence you expect for a skill), and each analysis returns findings linked to the timestamp that supports them, or insufficient when the answer doesn’t support a conclusion: it abstains rather than guess. Results arrive in the intelligence.lens_analysis.completed webhook, with the same userMetadata.

Treat the result as input for a reviewer. The hiring decision stays with a person on your team.

Should you turn on recording integrity?

If remote fraud is a concern, yes. integrity={{ enabled: true }} records the camera, the microphone and the tab’s visibility with timestamps, can ask the candidate for a small gesture or a short phrase at a random moment, and the server seals the report. It uses no biometrics and never decides on its own; see how VIDTREO capture integrity works. Tell candidates what is observed before they start.

What does it cost per candidate?

Video costs $0.008 to $0.015 per recorded minute depending on resolution, with storage and transcription included and no monthly fee. Three 2-minute answers in HD are 6 minutes at $0.010: $0.06 per candidate. Adding one Intelligence lens is $0.015 per minute of video, so $0.15 per candidate in total. The candidate video recording guide works through a 500-candidate example.

Frequently asked questions

Do candidates need to install anything to answer a one-way video interview?

No. The VIDTREO recorder runs in the browser on desktop and mobile. On phones it can also hand off to the device's native camera app, which the documentation recommends on iOS Safari.

Which frameworks does the VIDTREO SDK support?

React, Vue, Nuxt, Web Components and vanilla JavaScript, all with TypeScript types.

How do I know which candidate a recording belongs to?

Pass your own IDs (candidate, job, question) as userMetadata on the recorder. VIDTREO stores them with the recording and sends them back in every webhook, so your handler needs no lookup table.

Is the transcript included in the price?

Yes. Every recording is transcribed with AI, with the language detected automatically, and delivered as VTT, timestamped JSON and plain text. Video costs $0.008 to $0.015 per recorded minute with storage and transcription included.

Can I score answers automatically?

VIDTREO Intelligence evaluates each answer against the criteria you define (a lens), links every finding to its timestamp and abstains rather than guess. It costs $0.015 per minute of video per lens, and a person on your team makes the hiring decision.

Share this article