Run one connection tool yourself
Rails runs one tool of a connection you may use (GET /bot-connections/usable), for you, from Mist (we-bots phase 014). Rails makes the call, so no connection secret reaches Mist. A connection that isn’t yours or your company’s, or that is disabled, broken or disallowed, is refused as unknown_connection; a tool that is switched off as tool_not_enabled.
Each call that reaches the server is recorded naming you, with its tool, effect class and outcome, never its arguments or answer. The answer is marked untrusted: treat it as outside content. Rails does not gate a tool in approval mode; Mist asks you before calling it.
Needs the we_bots.update permission. A request made as a bot (X-Fluid-Bot-Id) is refused: a bot’s run calls through POST /bots/{bot_id}/runs/{run_id}/connections/{id}/call.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": "gmail_search",
"tool_arguments": {
"query": "refund"
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call"
payload = {
"tool": "gmail_search",
"tool_arguments": { "query": "refund" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tool: 'gmail_search', tool_arguments: {query: 'refund'}})
};
fetch('https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call', 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.fluid.app/api/company/v2026-10/bot-connections/{id}/call",
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([
'tool' => 'gmail_search',
'tool_arguments' => [
'query' => 'refund'
]
]),
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.fluid.app/api/company/v2026-10/bot-connections/{id}/call"
payload := strings.NewReader("{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}"
response = http.request(request)
puts response.read_body{
"answer": {
"text": "Refund for order 1009: approved",
"truncated": false,
"tool_error": false,
"untrusted": true
},
"status": 200,
"meta": {
"request_uuid": "0192f0a4-7c1e-7d1a-9f3b-2a6c4d8e1f00",
"timestamp": "2026-11-15T09:00:00Z"
}
}{
"message": "Invalid credentials."
}{
"error": {
"message": "Bots can change only their own settings (profile, model, capabilities, budget, pause), never approve or decline approval cards, or change owners, stewards, other bots, connections or templates. Ask a person to do it in Fluid.",
"details": {
"type": "bot_governance_refused"
}
},
"status": 403,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-15T09:00:00Z"
}
}Authorizations
Body
Response
The tool's answer, or why it was refused.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": "gmail_search",
"tool_arguments": {
"query": "refund"
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call"
payload = {
"tool": "gmail_search",
"tool_arguments": { "query": "refund" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tool: 'gmail_search', tool_arguments: {query: 'refund'}})
};
fetch('https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call', 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.fluid.app/api/company/v2026-10/bot-connections/{id}/call",
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([
'tool' => 'gmail_search',
'tool_arguments' => [
'query' => 'refund'
]
]),
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.fluid.app/api/company/v2026-10/bot-connections/{id}/call"
payload := strings.NewReader("{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-connections/{id}/call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool\": \"gmail_search\",\n \"tool_arguments\": {\n \"query\": \"refund\"\n }\n}"
response = http.request(request)
puts response.read_body{
"answer": {
"text": "Refund for order 1009: approved",
"truncated": false,
"tool_error": false,
"untrusted": true
},
"status": 200,
"meta": {
"request_uuid": "0192f0a4-7c1e-7d1a-9f3b-2a6c4d8e1f00",
"timestamp": "2026-11-15T09:00:00Z"
}
}{
"message": "Invalid credentials."
}{
"error": {
"message": "Bots can change only their own settings (profile, model, capabilities, budget, pause), never approve or decline approval cards, or change owners, stewards, other bots, connections or templates. Ask a person to do it in Fluid.",
"details": {
"type": "bot_governance_refused"
}
},
"status": 403,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-11-15T09:00:00Z"
}
}