Skip to main content
GET
/
v2
/
transcripts
/
{transcriptId}
Get a single Transcript
curl --request GET \
  --url https://api.affinity.co/v2/transcripts/{transcriptId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "fragmentsPreview": {
    "data": [
      {
        "content": "I want the most intelligent hamster you've got.",
        "speaker": "Lisa Simpson",
        "startTimestamp": "00:00:01",
        "endTimestamp": "00:00:04"
      },
      {
        "content": "Okay. Uh-- this little guy writes mysteries under the name of J.D. MacGregor.",
        "speaker": "Sarcastic Clerk",
        "startTimestamp": "00:00:05",
        "endTimestamp": "00:00:11"
      },
      {
        "content": "How can a hamster write mysteries?",
        "speaker": "Lisa Simpson",
        "startTimestamp": "00:00:12",
        "endTimestamp": "00:00:13"
      },
      {
        "content": "Well he gets the ending first then he works backward.",
        "speaker": "Sarcastic Clerk",
        "startTimestamp": "00:00:15",
        "endTimestamp": "00:00:19"
      }
    ],
    "totalCount": 4
  },
  "note": {
    "id": 742,
    "type": "ai-notetaker",
    "content": {
      "html": "<p> Lisa requests the most intelligent hamster available. The clerk presents a hamster he claims is a mystery writer. When Lisa questions how that could be possible, the clerk explains the hamster's writing process. </p>"
    },
    "transcriptId": 1,
    "creator": {
      "id": 8,
      "firstName": "Lisa",
      "lastName": "Simpson",
      "primaryEmailAddress": "[email protected]",
      "type": "internal"
    },
    "mentions": [],
    "createdAt": "2023-01-01T00:00:20Z",
    "updatedAt": "2023-01-21T00:01:00Z"
  },
  "languageCode": "en",
  "createdAt": "2023-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

transcriptId
integer<int32>
required

The id of the Transcript

Required range: 1 <= x <= 2147483647

Response

OK

id
integer<int32>
required

The transcript's unique identifier

Required range: 1 <= x <= 2147483647
Example:

1234

note
notes.AiNotetakerRootNote · object
required

Note associated with the transcript

createdAt
string<date-time>
required

The date and time the transcript was created

languageCode
enum<string>
required

The language code of the transcript

Available options:
de,
en,
es,
fr,
id,
it,
ja,
ko,
nl,
pt,
ru,
sv,
uk,
zh
Example:

"en"

fragmentsPreview
transcripts.FragmentsPreview · object
required

A preview for dialogue fragments on a transcript