tools
update a tool
change a tool. config replaces the stored config whole, except that an auth block without a token / password keeps the stored credential (an empty string clears it).
PATCH
/
v1
/
tools
/
{tool_id}
update a tool
curl --request PATCH \
--url https://silk-api.rumik.ai/v1/tools/{tool_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"description": "looks the caller's account up",
"config": {
"action": "get",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"token": "sk-…"
},
"timeoutMs": 3000,
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
}
}
EOFimport requests
url = "https://silk-api.rumik.ai/v1/tools/{tool_id}"
payload = {
"description": "looks the caller's account up",
"config": {
"action": "get",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"token": "sk-…"
},
"timeoutMs": 3000,
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
}
}
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({
description: 'looks the caller\'s account up',
config: {
action: 'get',
method: 'GET',
url: 'https://api.example.com/v1/accounts',
params: [{name: 'phone', value: '{phone_number}'}],
headers: [{name: 'Accept', value: 'application/json'}],
auth: {type: 'bearer', token: 'sk-…'},
timeoutMs: 3000,
outputs: [{name: 'firstName', path: ''}, {name: 'plan', path: 'account.plan'}]
}
})
};
fetch('https://silk-api.rumik.ai/v1/tools/{tool_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://silk-api.rumik.ai/v1/tools/{tool_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([
'description' => 'looks the caller\'s account up',
'config' => [
'action' => 'get',
'method' => 'GET',
'url' => 'https://api.example.com/v1/accounts',
'params' => [
[
'name' => 'phone',
'value' => '{phone_number}'
]
],
'headers' => [
[
'name' => 'Accept',
'value' => 'application/json'
]
],
'auth' => [
'type' => 'bearer',
'token' => 'sk-…'
],
'timeoutMs' => 3000,
'outputs' => [
[
'name' => 'firstName',
'path' => ''
],
[
'name' => 'plan',
'path' => 'account.plan'
]
]
]
]),
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://silk-api.rumik.ai/v1/tools/{tool_id}"
payload := strings.NewReader("{\n \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\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://silk-api.rumik.ai/v1/tools/{tool_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/tools/{tool_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 \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "019f8e32-4d60-7f71-ac8d-9e0f1a2b3c4d",
"name": "lookup_account",
"description": "looks the caller's account up by phone number",
"kind": "before_call",
"config": {
"action": "get",
"performedAction": "end_call",
"curl": "",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"body": "",
"timeoutMs": 3000,
"waitForResponse": true,
"auth": {
"type": "bearer",
"headerName": "X-API-Key",
"username": "",
"hasSecret": true
},
"llmParams": [],
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
},
"isDefault": false,
"createdAt": "2026-09-11T10:00:00Z",
"updatedAt": "2026-09-11T10:00:00Z"
}Authorizations
your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.
Path Parameters
the tool's id.
Body
application/json
Every field optional; config replaces the stored config whole (the
dashboard always sends the full object), except that an omitted secret
keeps the stored one.
Response
ok.
a tool as stored. the credential is never returned.
the tool's id (default-… for built-ins).
When in a call's life the agent reaches for the tool.
Available options:
before_call, during_call Server-constructed (serialization_alias), see :class:AgentToolAuthView.
Show child attributes
Show child attributes
true for the platform's built-in tools, which cannot be edited or deleted.
⌘I
update a tool
curl --request PATCH \
--url https://silk-api.rumik.ai/v1/tools/{tool_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"description": "looks the caller's account up",
"config": {
"action": "get",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"token": "sk-…"
},
"timeoutMs": 3000,
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
}
}
EOFimport requests
url = "https://silk-api.rumik.ai/v1/tools/{tool_id}"
payload = {
"description": "looks the caller's account up",
"config": {
"action": "get",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"token": "sk-…"
},
"timeoutMs": 3000,
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
}
}
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({
description: 'looks the caller\'s account up',
config: {
action: 'get',
method: 'GET',
url: 'https://api.example.com/v1/accounts',
params: [{name: 'phone', value: '{phone_number}'}],
headers: [{name: 'Accept', value: 'application/json'}],
auth: {type: 'bearer', token: 'sk-…'},
timeoutMs: 3000,
outputs: [{name: 'firstName', path: ''}, {name: 'plan', path: 'account.plan'}]
}
})
};
fetch('https://silk-api.rumik.ai/v1/tools/{tool_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://silk-api.rumik.ai/v1/tools/{tool_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([
'description' => 'looks the caller\'s account up',
'config' => [
'action' => 'get',
'method' => 'GET',
'url' => 'https://api.example.com/v1/accounts',
'params' => [
[
'name' => 'phone',
'value' => '{phone_number}'
]
],
'headers' => [
[
'name' => 'Accept',
'value' => 'application/json'
]
],
'auth' => [
'type' => 'bearer',
'token' => 'sk-…'
],
'timeoutMs' => 3000,
'outputs' => [
[
'name' => 'firstName',
'path' => ''
],
[
'name' => 'plan',
'path' => 'account.plan'
]
]
]
]),
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://silk-api.rumik.ai/v1/tools/{tool_id}"
payload := strings.NewReader("{\n \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\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://silk-api.rumik.ai/v1/tools/{tool_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/tools/{tool_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 \"description\": \"looks the caller's account up\",\n \"config\": {\n \"action\": \"get\",\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/accounts\",\n \"params\": [\n {\n \"name\": \"phone\",\n \"value\": \"{phone_number}\"\n }\n ],\n \"headers\": [\n {\n \"name\": \"Accept\",\n \"value\": \"application/json\"\n }\n ],\n \"auth\": {\n \"type\": \"bearer\",\n \"token\": \"sk-…\"\n },\n \"timeoutMs\": 3000,\n \"outputs\": [\n {\n \"name\": \"firstName\",\n \"path\": \"\"\n },\n {\n \"name\": \"plan\",\n \"path\": \"account.plan\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "019f8e32-4d60-7f71-ac8d-9e0f1a2b3c4d",
"name": "lookup_account",
"description": "looks the caller's account up by phone number",
"kind": "before_call",
"config": {
"action": "get",
"performedAction": "end_call",
"curl": "",
"method": "GET",
"url": "https://api.example.com/v1/accounts",
"headers": [
{
"name": "Accept",
"value": "application/json"
}
],
"params": [
{
"name": "phone",
"value": "{phone_number}"
}
],
"body": "",
"timeoutMs": 3000,
"waitForResponse": true,
"auth": {
"type": "bearer",
"headerName": "X-API-Key",
"username": "",
"hasSecret": true
},
"llmParams": [],
"outputs": [
{
"name": "firstName",
"path": ""
},
{
"name": "plan",
"path": "account.plan"
}
]
},
"isDefault": false,
"createdAt": "2026-09-11T10:00:00Z",
"updatedAt": "2026-09-11T10:00:00Z"
}