Start a Realtime Transcription - API
This API lets you start a realtime transcription by passing roomId as body parameters.
HTTP method and endpoint
POST
|
https://api.videosdk.live/ai/v1/realtime-transcriptions/start
Headers Parameters
REQUIRED
values: YOUR_TOKEN_WITHOUT_ANY_PREFIX
This will be a JWT token generate using VideoSDK ApiKey and Secret.
Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.
You can generate a new token by refering this Guide: Generate Auth token
REQUIRED
values: application/json
This is usefull for json body parameters, so that VideoSDK servers can understand that the incoming body parameter will be a JSON string.
Body Parameters
REQUIRED
The ID of the Room.
OPTIONAL
Webhook URL
OPTIONAL
Hides personal information, such as names, phone numbers and card numbers, in the stored transcript and summary. Live captions are not redacted. To know more about the PII redaction feature, click here.
- enabled: true | false
- entities: ["name", "phone_number", ...] (default: all types)
- redactSpeakerNames: true | false
- customEntities: [{ "name", "description", "tag" }], up to 10 of your own PII types
POST
|
https://api.videosdk.live/ai/v1/realtime-transcriptions/start
NodeJS
import fetch from 'node-fetch';
const options = {
method: "POST",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"roomId": "xyz",
"webhookUrl": "https://www.example.com",
"piiRedaction": {
"enabled": true
}
}),
};
const url= `https://api.videosdk.live/ai/v1/realtime-transcriptions/start`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "82feea14-6783-4e63-84fc-17c5666bfd5c",
"status": "running",
"extension": {
"enabled": true,
"provider": "videosdk",
"extensionConfig": {
"roomId": "abc-xyzw-lmno",
"sessionId": "621497578bea0d0404c35c4c"
}
},
"webhookUrl": "https://www.example.com/",
"start": "2024-02-27T16:00:36.828Z",
"piiRedaction": {
"enabled": true,
"redactSpeakerNames": false
}
}
Got a Question? Ask us on discord