Create Verification
curl --request POST \
--url https://tavusapi.com/v2/content/verification \
--header 'Content-Type: application/json' \
--data '
{
"content_type": "video/mp4",
"content_length": 53114048
}
'import requests
url = "https://tavusapi.com/v2/content/verification"
payload = {
"content_type": "video/mp4",
"content_length": 53114048
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({content_type: 'video/mp4', content_length: 53114048})
};
fetch('https://tavusapi.com/v2/content/verification', 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://tavusapi.com/v2/content/verification",
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([
'content_type' => 'video/mp4',
'content_length' => 53114048
]),
CURLOPT_HTTPHEADER => [
"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://tavusapi.com/v2/content/verification"
payload := strings.NewReader("{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tavusapi.com/v2/content/verification")
.header("Content-Type", "application/json")
.body("{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/content/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}"
response = http.request(request)
puts response.read_body{
"verification_id": "5b0f2c3e-7a1d-4c2e-9f3b-2d8e6a1c4b70",
"s3_presigned_url": "https://...amazonaws.com/content-verification/5b0f2c3e-...?X-Amz-Signature=..."
}{
"error": "<string>"
}{
"error": "<string>"
}Content Verification
Create Verification
Start checking a file for the invisible watermark Tavus embeds in every frame of conversation video. Send the file’s MIME type and size; the response has a verification_id and a presigned URL to PUT the file to. Then call Start Verification and poll Get Verification.
The upload URL is valid for 15 minutes and is signed for the exact Content-Type and size you declare. Storage rejects an upload (403) whose type or size differs.
See Content Verification for the full flow and how to read the result.
POST
/
v2
/
content
/
verification
Create Verification
curl --request POST \
--url https://tavusapi.com/v2/content/verification \
--header 'Content-Type: application/json' \
--data '
{
"content_type": "video/mp4",
"content_length": 53114048
}
'import requests
url = "https://tavusapi.com/v2/content/verification"
payload = {
"content_type": "video/mp4",
"content_length": 53114048
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({content_type: 'video/mp4', content_length: 53114048})
};
fetch('https://tavusapi.com/v2/content/verification', 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://tavusapi.com/v2/content/verification",
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([
'content_type' => 'video/mp4',
'content_length' => 53114048
]),
CURLOPT_HTTPHEADER => [
"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://tavusapi.com/v2/content/verification"
payload := strings.NewReader("{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tavusapi.com/v2/content/verification")
.header("Content-Type", "application/json")
.body("{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/content/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_type\": \"video/mp4\",\n \"content_length\": 53114048\n}"
response = http.request(request)
puts response.read_body{
"verification_id": "5b0f2c3e-7a1d-4c2e-9f3b-2d8e6a1c4b70",
"s3_presigned_url": "https://...amazonaws.com/content-verification/5b0f2c3e-...?X-Amz-Signature=..."
}{
"error": "<string>"
}{
"error": "<string>"
}For AI agents, use
https://docs.tavus.io/openapi.yaml for the full HTTP API contract.Body
application/json

