Runtime Check Connector
curl --request POST \
--url https://tavusapi.com/v2/connectors/{connector_id}/runtime_check \
--header 'x-api-key: <api-key>'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}/runtime_check"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://tavusapi.com/v2/connectors/{connector_id}/runtime_check', 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/connectors/{connector_id}/runtime_check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://tavusapi.com/v2/connectors/{connector_id}/runtime_check"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/connectors/{connector_id}/runtime_check")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}/runtime_check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"tool_count": 3,
"tool_names": [
"search_messages",
"list_channels",
"post_message"
],
"latency_ms": 1830,
"error": null
}Connectors
Runtime Check Connector
Check that a call can reach the server. A call reaches it differently from Preview Connector Tools, so a server can pass preview and still fail in a call. This lists the server’s tools the way a call does. It never calls a tool.
A failure on the server’s side is still a 200, with ok: false and the error. Limited to 10 checks per minute per account.
POST
/
v2
/
connectors
/
{connector_id}
/
runtime_check
Runtime Check Connector
curl --request POST \
--url https://tavusapi.com/v2/connectors/{connector_id}/runtime_check \
--header 'x-api-key: <api-key>'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}/runtime_check"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://tavusapi.com/v2/connectors/{connector_id}/runtime_check', 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/connectors/{connector_id}/runtime_check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://tavusapi.com/v2/connectors/{connector_id}/runtime_check"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/connectors/{connector_id}/runtime_check")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}/runtime_check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"tool_count": 3,
"tool_names": [
"search_messages",
"list_channels",
"post_message"
],
"latency_ms": 1830,
"error": null
}Authorizations
Path Parameters
Example:
"c8-58ea0f6420b2"
Response
The check ran. ok says whether the server's tools could be listed.
true when the server's tools were listed. A conversation can reach this server.
Example:
true
How many tools were listed. 0 when ok is false.
Example:
3
The names of the tools that were listed.
Example:
[
"search_messages",
"list_channels",
"post_message"
]
How long the check took, in milliseconds.
Example:
1830
null when ok is true.
Show child attributes
Show child attributes

