curl --request POST \
--url https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "List the action items decided in this meeting."
}
'import requests
url = "https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages"
payload = { "prompt": "List the action items decided in this meeting." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'List the action items decided in this meeting.'})
};
fetch('https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages', 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://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'List the action items decided in this meeting.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages"
payload := strings.NewReader("{\n \"prompt\": \"List the action items decided in this meeting.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"List the action items decided in this meeting.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"List the action items decided in this meeting.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"transcription_id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Action items",
"created_at": "2024-01-15T10:30:00.000Z",
"messages": [
{
"role": "user",
"content": "List the action items decided in this meeting.",
"created_at": "2024-01-15T10:30:00.000Z"
}
],
"turn_in_progress": false
}Add a prompt to a chat and get its answer
You continue a chat, including one opened in the web app, and get the answer in the same response. If your connection drops, the answer is still saved: get the chat until turn_in_progress is false. A chat holds up to 2,000,000 tokens. This endpoint is in beta and may change.
curl --request POST \
--url https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "List the action items decided in this meeting."
}
'import requests
url = "https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages"
payload = { "prompt": "List the action items decided in this meeting." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'List the action items decided in this meeting.'})
};
fetch('https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages', 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://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'List the action items decided in this meeting.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages"
payload := strings.NewReader("{\n \"prompt\": \"List the action items decided in this meeting.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"List the action items decided in this meeting.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.api.vook.ai/api/v1/transcriptions/{id}/chats/{chat_id}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"List the action items decided in this meeting.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"transcription_id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Action items",
"created_at": "2024-01-15T10:30:00.000Z",
"messages": [
{
"role": "user",
"content": "List the action items decided in this meeting.",
"created_at": "2024-01-15T10:30:00.000Z"
}
],
"turn_in_progress": false
}Authorizations
Your Vook API key (mint one from the web app).
Path Parameters
Transcription ID
"123e4567-e89b-12d3-a456-426614174000"
Chat ID
"123e4567-e89b-12d3-a456-426614174000"
Body
Question or instruction to run against the transcript
1"List the action items decided in this meeting."
Response
The chat, with your prompt and its answer
Chat ID
"123e4567-e89b-12d3-a456-426614174000"
ID of the transcription this chat runs against
"123e4567-e89b-12d3-a456-426614174000"
Label given to the chat
"Action items"
When the chat was created
"2024-01-15T10:30:00.000Z"
Prompts and answers, oldest first
Show child attributes
Show child attributes
True while a message on this chat is being answered. Poll the chat until it is false: your prompt and its answer in messages means the turn completed.
false