Get transcription task
curl --request GET \
--url https://heardraft.com/api/v1/transcriptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://heardraft.com/api/v1/transcriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://heardraft.com/api/v1/transcriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://heardraft.com/api/v1/transcriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://heardraft.com/api/v1/transcriptions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://heardraft.com/api/v1/transcriptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://heardraft.com/api/v1/transcriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "8b1e23fa-4c2b-4a8e-9b19-1d63df06a012",
"sourceId": "1f9c2810-79a4-4f25-8f55-c2e60ad1a4be",
"status": "ready",
"expiresAt": null,
"result": {
"text": "Welcome back everyone.\nLet's review the interview timeline before Friday.",
"durationSeconds": 142.4,
"segments": [
{
"text": "Let's review the interview timeline before Friday.",
"startMs": 4200,
"endMs": 8650,
"speaker": "Speaker 1"
}
]
},
"error": {
"code": "TRANSCRIPTION_FAILED",
"message": "Transcription could not finish."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}Transcriptions
Get transcription task
Retrieves the current status and, once ready, the full text, recording duration, and millisecond-timestamped transcript segments for a task submitted by the same workspace.
GET
/
api
/
v1
/
transcriptions
/
{id}
Get transcription task
curl --request GET \
--url https://heardraft.com/api/v1/transcriptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://heardraft.com/api/v1/transcriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://heardraft.com/api/v1/transcriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://heardraft.com/api/v1/transcriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://heardraft.com/api/v1/transcriptions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://heardraft.com/api/v1/transcriptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://heardraft.com/api/v1/transcriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "8b1e23fa-4c2b-4a8e-9b19-1d63df06a012",
"sourceId": "1f9c2810-79a4-4f25-8f55-c2e60ad1a4be",
"status": "ready",
"expiresAt": null,
"result": {
"text": "Welcome back everyone.\nLet's review the interview timeline before Friday.",
"durationSeconds": 142.4,
"segments": [
{
"text": "Let's review the interview timeline before Friday.",
"startMs": 4200,
"endMs": 8650,
"speaker": "Speaker 1"
}
]
},
"error": {
"code": "TRANSCRIPTION_FAILED",
"message": "Transcription could not finish."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}{
"error": {
"code": "INVALID_IDEMPOTENCY_KEY",
"message": "Send an Idempotency-Key with 8–128 letters, digits, dots, underscores or hyphens."
}
}Authorizations
Path Parameters
Response
Current transcription task state.