Calls
Get a call's transcript
Returns what was said on one call, line by line, in the order it was said. Find call ids
with POST /v1/objects/call/query.
A key reads the calls the person who created it can open in the app: their own, the ones
shared with the workspace and, for an admin, every call. Any other call answers 404, as
an id that does not exist does.
GET
/
v1
/
objects
/
call
/
{id}
/
transcript
Get a call's transcript
curl --request GET \
--url https://api.clearskies.cc/v1/objects/call/{id}/transcript \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.clearskies.cc/v1/objects/call/{id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clearskies.cc/v1/objects/call/{id}/transcript', 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://api.clearskies.cc/v1/objects/call/{id}/transcript",
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://api.clearskies.cc/v1/objects/call/{id}/transcript"
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://api.clearskies.cc/v1/objects/call/{id}/transcript")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clearskies.cc/v1/objects/call/{id}/transcript")
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{
"ok": true,
"data": {
"callId": "0198c7e3-2b6d-7c10-9a4e-5f8b1d2c3e70",
"status": "available",
"lines": [
{
"speaker": "Dana Kim",
"timestamp": "1:05",
"text": "Let's talk pricing."
},
{
"speaker": "Eli Park",
"timestamp": "1:09",
"text": "Sounds good."
}
]
},
"requestId": "0199f2b0-7c41-7a3e-9d6c-2f5a1b8e4c07"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}The Clearskies API is in beta and available on request. To turn it on for your workspace, email
support@clearskies.cc.
Authorizations
Was this page helpful?
⌘I
Get a call's transcript
curl --request GET \
--url https://api.clearskies.cc/v1/objects/call/{id}/transcript \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.clearskies.cc/v1/objects/call/{id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clearskies.cc/v1/objects/call/{id}/transcript', 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://api.clearskies.cc/v1/objects/call/{id}/transcript",
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://api.clearskies.cc/v1/objects/call/{id}/transcript"
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://api.clearskies.cc/v1/objects/call/{id}/transcript")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clearskies.cc/v1/objects/call/{id}/transcript")
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{
"ok": true,
"data": {
"callId": "0198c7e3-2b6d-7c10-9a4e-5f8b1d2c3e70",
"status": "available",
"lines": [
{
"speaker": "Dana Kim",
"timestamp": "1:05",
"text": "Let's talk pricing."
},
{
"speaker": "Eli Park",
"timestamp": "1:09",
"text": "Sounds good."
}
]
},
"requestId": "0199f2b0-7c41-7a3e-9d6c-2f5a1b8e4c07"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
},
"requestId": "<string>",
"traceId": "<string>"
}