Update tool provider
curl --request PATCH \
--url https://api.sidenet.ai/v1/tool-providers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme CRM",
"base_url": "https://api.acme.example",
"description": "Customer records",
"auth_config": {
"header": "Authorization",
"scheme": "Bearer"
},
"default_headers": {
"X-Acme-Version": "2026-01-01"
},
"runtime_auth": false,
"timeout_ms": 30000,
"auth_secret": {
"token": "the API key to store in the vault"
}
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}"
payload = {
"name": "Acme CRM",
"base_url": "https://api.acme.example",
"description": "Customer records",
"auth_config": {
"header": "Authorization",
"scheme": "Bearer"
},
"default_headers": { "X-Acme-Version": "2026-01-01" },
"runtime_auth": False,
"timeout_ms": 30000,
"auth_secret": { "token": "the API key to store in the vault" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme CRM',
base_url: 'https://api.acme.example',
description: 'Customer records',
auth_config: {header: 'Authorization', scheme: 'Bearer'},
default_headers: {'X-Acme-Version': '2026-01-01'},
runtime_auth: false,
timeout_ms: 30000,
auth_secret: {token: 'the API key to store in the vault'}
})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{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://api.sidenet.ai/v1/tool-providers/{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' => 'Acme CRM',
'base_url' => 'https://api.acme.example',
'description' => 'Customer records',
'auth_config' => [
'header' => 'Authorization',
'scheme' => 'Bearer'
],
'default_headers' => [
'X-Acme-Version' => '2026-01-01'
],
'runtime_auth' => false,
'timeout_ms' => 30000,
'auth_secret' => [
'token' => 'the API key to store in the vault'
]
]),
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://api.sidenet.ai/v1/tool-providers/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sidenet.ai/v1/tool-providers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "api",
"description": "<string>",
"base_url": "<string>",
"auth_type": "<string>",
"auth_config": {},
"has_vault_secret": true,
"runtime_auth": true,
"mcp_transport": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"rebuild": {
"scope": "<string>",
"tools": {
"affectedToolIds": [
"<string>"
],
"totalToolIds": 123,
"providerCounts": {
"api": 123,
"mcp": 123,
"other": 123
},
"mcpErrors": [
{
"providerId": "<string>",
"providerName": "<string>",
"error": "<string>"
}
]
},
"rebuilt": 123,
"failed": 123,
"skipped": 123,
"agents": [
{}
],
"failedAgents": [
{
"agentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mastraId": "<string>",
"error": "<string>"
}
],
"totalBuildTime": 123
},
"warning": "<string>"
}Tool Providers
Update tool provider
Updates provider fields. Send auth_secret to rotate stored credentials. Reloads the org tools and rebuilds dependent agents.
PATCH
/
v1
/
tool-providers
/
{id}
Update tool provider
curl --request PATCH \
--url https://api.sidenet.ai/v1/tool-providers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme CRM",
"base_url": "https://api.acme.example",
"description": "Customer records",
"auth_config": {
"header": "Authorization",
"scheme": "Bearer"
},
"default_headers": {
"X-Acme-Version": "2026-01-01"
},
"runtime_auth": false,
"timeout_ms": 30000,
"auth_secret": {
"token": "the API key to store in the vault"
}
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}"
payload = {
"name": "Acme CRM",
"base_url": "https://api.acme.example",
"description": "Customer records",
"auth_config": {
"header": "Authorization",
"scheme": "Bearer"
},
"default_headers": { "X-Acme-Version": "2026-01-01" },
"runtime_auth": False,
"timeout_ms": 30000,
"auth_secret": { "token": "the API key to store in the vault" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme CRM',
base_url: 'https://api.acme.example',
description: 'Customer records',
auth_config: {header: 'Authorization', scheme: 'Bearer'},
default_headers: {'X-Acme-Version': '2026-01-01'},
runtime_auth: false,
timeout_ms: 30000,
auth_secret: {token: 'the API key to store in the vault'}
})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{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://api.sidenet.ai/v1/tool-providers/{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' => 'Acme CRM',
'base_url' => 'https://api.acme.example',
'description' => 'Customer records',
'auth_config' => [
'header' => 'Authorization',
'scheme' => 'Bearer'
],
'default_headers' => [
'X-Acme-Version' => '2026-01-01'
],
'runtime_auth' => false,
'timeout_ms' => 30000,
'auth_secret' => [
'token' => 'the API key to store in the vault'
]
]),
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://api.sidenet.ai/v1/tool-providers/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sidenet.ai/v1/tool-providers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme CRM\",\n \"base_url\": \"https://api.acme.example\",\n \"description\": \"Customer records\",\n \"auth_config\": {\n \"header\": \"Authorization\",\n \"scheme\": \"Bearer\"\n },\n \"default_headers\": {\n \"X-Acme-Version\": \"2026-01-01\"\n },\n \"runtime_auth\": false,\n \"timeout_ms\": 30000,\n \"auth_secret\": {\n \"token\": \"the API key to store in the vault\"\n }\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "api",
"description": "<string>",
"base_url": "<string>",
"auth_type": "<string>",
"auth_config": {},
"has_vault_secret": true,
"runtime_auth": true,
"mcp_transport": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"rebuild": {
"scope": "<string>",
"tools": {
"affectedToolIds": [
"<string>"
],
"totalToolIds": 123,
"providerCounts": {
"api": 123,
"mcp": 123,
"other": 123
},
"mcpErrors": [
{
"providerId": "<string>",
"providerName": "<string>",
"error": "<string>"
}
]
},
"rebuilt": 123,
"failed": 123,
"skipped": 123,
"agents": [
{}
],
"failedAgents": [
{
"agentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mastraId": "<string>",
"error": "<string>"
}
],
"totalBuildTime": 123
},
"warning": "<string>"
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Path Parameters
Example:
"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63"
Body
application/json
Minimum string length:
1Example:
"Acme CRM"
Example:
"https://api.acme.example"
Example:
"Customer records"
Available options:
basic, bearer, api-key, oauth2, custom Show child attributes
Show child attributes
Example:
{
"header": "Authorization",
"scheme": "Bearer"
}
Show child attributes
Show child attributes
Example:
{ "X-Acme-Version": "2026-01-01" }
Example:
false
Required range:
1000 <= x <= 30000Example:
30000
Available options:
streamable_http, sse Show child attributes
Show child attributes
Example:
{
"token": "the API key to store in the vault"
}