Get a single Transcript
curl --request GET \
--url https://api.affinity.co/v2/transcripts/{transcriptId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.affinity.co/v2/transcripts/{transcriptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.affinity.co/v2/transcripts/{transcriptId}', 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.affinity.co/v2/transcripts/{transcriptId}",
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.affinity.co/v2/transcripts/{transcriptId}"
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.affinity.co/v2/transcripts/{transcriptId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.affinity.co/v2/transcripts/{transcriptId}")
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": 1,
"fragmentsPreview": {
"data": [
{
"content": "Can you walk us through your ARR growth over the past two quarters?",
"speaker": "Sarah Park",
"startTimestamp": "00:00:01",
"endTimestamp": "00:00:05"
},
{
"content": "We went from 1.2 million to 2.5 million ARR — roughly 110% growth.",
"speaker": "Alex Rivera",
"startTimestamp": "00:00:06",
"endTimestamp": "00:00:11"
},
{
"content": "That's impressive. What's primarily driving the expansion?",
"speaker": "Sarah Park",
"startTimestamp": "00:00:12",
"endTimestamp": "00:00:15"
},
{
"content": "Mostly upsells from existing accounts. Our net revenue retention is at 135%.",
"speaker": "Alex Rivera",
"startTimestamp": "00:00:16",
"endTimestamp": "00:00:21"
}
],
"totalCount": 4
},
"note": {
"id": 742,
"type": "ai-notetaker",
"content": {
"html": "<p> Sarah reviews the company's ARR growth trajectory with Alex. The team discusses expansion revenue drivers and the path to Series B. </p>"
},
"transcriptId": 1,
"creator": {
"id": 8,
"firstName": "Sarah",
"lastName": "Park",
"primaryEmailAddress": "sarah.park@horizontech.com",
"type": "internal"
},
"mentions": [],
"createdAt": "2023-01-01T00:00:20Z",
"updatedAt": "2023-01-21T00:01:00Z"
},
"languageCode": "en",
"createdAt": "2023-01-01T00:00:00Z"
}{
"errors": [
{
"code": "bad-request",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "not-found",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "authentication",
"message": "<string>"
}
]
}Transcripts
Get a single Transcript
Get a transcript with a given id with the first 100 fragments of the transcript. Use the /fragments endpoint to fetch all fragments of the transcript.
GET
/
v2
/
transcripts
/
{transcriptId}
Get a single Transcript
curl --request GET \
--url https://api.affinity.co/v2/transcripts/{transcriptId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.affinity.co/v2/transcripts/{transcriptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.affinity.co/v2/transcripts/{transcriptId}', 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.affinity.co/v2/transcripts/{transcriptId}",
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.affinity.co/v2/transcripts/{transcriptId}"
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.affinity.co/v2/transcripts/{transcriptId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.affinity.co/v2/transcripts/{transcriptId}")
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": 1,
"fragmentsPreview": {
"data": [
{
"content": "Can you walk us through your ARR growth over the past two quarters?",
"speaker": "Sarah Park",
"startTimestamp": "00:00:01",
"endTimestamp": "00:00:05"
},
{
"content": "We went from 1.2 million to 2.5 million ARR — roughly 110% growth.",
"speaker": "Alex Rivera",
"startTimestamp": "00:00:06",
"endTimestamp": "00:00:11"
},
{
"content": "That's impressive. What's primarily driving the expansion?",
"speaker": "Sarah Park",
"startTimestamp": "00:00:12",
"endTimestamp": "00:00:15"
},
{
"content": "Mostly upsells from existing accounts. Our net revenue retention is at 135%.",
"speaker": "Alex Rivera",
"startTimestamp": "00:00:16",
"endTimestamp": "00:00:21"
}
],
"totalCount": 4
},
"note": {
"id": 742,
"type": "ai-notetaker",
"content": {
"html": "<p> Sarah reviews the company's ARR growth trajectory with Alex. The team discusses expansion revenue drivers and the path to Series B. </p>"
},
"transcriptId": 1,
"creator": {
"id": 8,
"firstName": "Sarah",
"lastName": "Park",
"primaryEmailAddress": "sarah.park@horizontech.com",
"type": "internal"
},
"mentions": [],
"createdAt": "2023-01-01T00:00:20Z",
"updatedAt": "2023-01-21T00:01:00Z"
},
"languageCode": "en",
"createdAt": "2023-01-01T00:00:00Z"
}{
"errors": [
{
"code": "bad-request",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "not-found",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "authentication",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The id of the Transcript
Required range:
1 <= x <= 2147483647Response
OK
The transcript's unique identifier
Required range:
1 <= x <= 2147483647Example:
1234
Note associated with the transcript
- notes.AiNotetakerRootNote
- notes.AiNotetakerReplyNote
Show child attributes
Show child attributes
Example:
{
"id": 1,
"type": "ai-notetaker",
"content": {
"html": "<p>This is an AI Notetaker note!</p>"
},
"creator": {
"id": 1,
"firstName": "Jane",
"lastName": "Smith",
"primaryEmailAddress": "jane.smith@northpointvc.com",
"type": "internal"
},
"transcriptId": 1,
"mentions": [],
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-21T00:00:00Z"
}
The date and time the transcript was created
The language code of the transcript
Available options:
de, en, es, fr, id, it, ja, ko, nl, pt, ru, sv, uk, zh Example:
"en"
A preview for dialogue fragments on a transcript
Show child attributes
Show child attributes
Was this page helpful?
⌘I