curl --request PATCH \
--url https://tavusapi.com/v2/connectors/{connector_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Linear (production)",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "bearer",
"token": "sk-..."
}
}
'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}"
payload = {
"name": "Linear (production)",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "bearer",
"token": "sk-..."
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Linear (production)',
server_url: 'https://mcp.linear.app/mcp',
auth_config: {type: 'bearer', token: 'sk-...'}
})
};
fetch('https://tavusapi.com/v2/connectors/{connector_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Linear (production)',
'server_url' => 'https://mcp.linear.app/mcp',
'auth_config' => [
'type' => 'bearer',
'token' => 'sk-...'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tavusapi.com/v2/connectors/{connector_id}"
payload := strings.NewReader("{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.patch("https://tavusapi.com/v2/connectors/{connector_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}"
response = http.request(request)
puts response.read_body{
"connector_id": "c8-58ea0f6420b2",
"owner_id": 4309,
"team_id": null,
"name": "Linear",
"source": "mcp",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "oauth2"
},
"selected_tool_names": null,
"oauth_status": "linked",
"oauth_scopes": [
"read",
"write"
],
"access_token_expires_at": "2026-08-18T09:14:00",
"last_indexed_at": "2026-08-17T18:20:11",
"last_index_error": null,
"created_at": "2026-08-17T18:02:56.838918",
"updated_at": "2026-08-17T18:20:11.563911"
}Update Connector
Update the name, endpoint, or auth of a connector. Only the fields you send change.
Changing server_url takes effect on the next conversation - the agent connects to whatever the connector currently points at.
curl --request PATCH \
--url https://tavusapi.com/v2/connectors/{connector_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Linear (production)",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "bearer",
"token": "sk-..."
}
}
'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}"
payload = {
"name": "Linear (production)",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "bearer",
"token": "sk-..."
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Linear (production)',
server_url: 'https://mcp.linear.app/mcp',
auth_config: {type: 'bearer', token: 'sk-...'}
})
};
fetch('https://tavusapi.com/v2/connectors/{connector_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Linear (production)',
'server_url' => 'https://mcp.linear.app/mcp',
'auth_config' => [
'type' => 'bearer',
'token' => 'sk-...'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tavusapi.com/v2/connectors/{connector_id}"
payload := strings.NewReader("{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.patch("https://tavusapi.com/v2/connectors/{connector_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Linear (production)\",\n \"server_url\": \"https://mcp.linear.app/mcp\",\n \"auth_config\": {\n \"type\": \"bearer\",\n \"token\": \"sk-...\"\n }\n}"
response = http.request(request)
puts response.read_body{
"connector_id": "c8-58ea0f6420b2",
"owner_id": 4309,
"team_id": null,
"name": "Linear",
"source": "mcp",
"server_url": "https://mcp.linear.app/mcp",
"auth_config": {
"type": "oauth2"
},
"selected_tool_names": null,
"oauth_status": "linked",
"oauth_scopes": [
"read",
"write"
],
"access_token_expires_at": "2026-08-18T09:14:00",
"last_indexed_at": "2026-08-17T18:20:11",
"last_index_error": null,
"created_at": "2026-08-17T18:02:56.838918",
"updated_at": "2026-08-17T18:20:11.563911"
}Authorizations
Path Parameters
The unique identifier of the connector.
"c8-58ea0f6420b2"
Body
Response
Connector updated
An MCP server you have registered. Secret material is never returned: auth_config comes back with its type and non-secret fields only, and OAuth tokens are omitted entirely.
The unique identifier of the connector. Use this everywhere a connector is referenced, including layers.mcp.connectors on a PAL.
"c8-58ea0f6420b2"
The account that owns the connector.
4309
Team the connector belongs to, when applicable.
null
Human-readable name. Also the basis of the label the background agent sees for this service.
"Linear"
Connector kind. mcp today.
"mcp"
The MCP server endpoint.
"https://mcp.linear.app/mcp"
How Tavus authenticates to the server, with secrets removed. See the create request for the accepted shapes.
{ "type": "oauth2" }
Always null on connectors created today, and not settable: the create and update endpoints reject the field. A leftover from the removed tool importer - tool scoping is a per-PAL decision, so use layers.mcp.connector_tools.
null
none for non-OAuth connectors. pending once an authorize URL has been issued but the flow is not finished. linked when Tavus holds a working token. needs_reauth when the refresh token stopped working - send the customer through Reconnect OAuth.
none, pending, linked, needs_reauth "linked"
Scopes granted by the authorization server.
["read", "write"]
When the current access token expires. Tavus refreshes it automatically while the connector stays linked.
"2026-08-18T09:14:00"
When tools were last imported from the server. null if never indexed.
"2026-08-17T18:20:11"
Why the last import failed, if it did.
null
"2026-08-17T18:02:56.838918"
"2026-08-17T18:20:11.563911"

