Tools
Create a tool
The new tool is shared with nobody but the key’s creator. Add knowledge with the agent sources endpoints instead. An HTTP_TOOL can sign in with OAuth 2.0 client credentials in auth; its client secret is stored encrypted and never read back. A BROWSER_FORM fills a web form in a browser: it opens page (a fixed address, or the link a request answers with), stays on allowedHosts, fills fields by their labels and takes the submit steps. Its log never keeps the link or the values typed. Needs a Full access key.
POST
/
api
/
v2
/
tools
Create a tool
curl --request POST \
--url https://app.cntillion.com/api/v2/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"parameters": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"responseMocks": [
{
"name": "<string>",
"response": "<string>",
"when": {},
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": true
}
],
"voice": {
"speechText": "<string>"
},
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"method": "POST",
"headers": {},
"secretHeaders": {},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": true,
"responseFields": [
"<string>"
]
},
"description": ""
}
'import requests
url = "https://app.cntillion.com/api/v2/tools"
payload = {
"name": "<string>",
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"parameters": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": "<unknown>",
"items": "<unknown>",
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"responseMocks": [
{
"name": "<string>",
"response": "<string>",
"when": {},
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": True
}
],
"voice": { "speechText": "<string>" },
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"method": "POST",
"headers": {},
"secretHeaders": {},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": True,
"responseFields": ["<string>"]
},
"description": ""
}
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({
name: '<string>',
configuration: {
kind: 'HTTP_TOOL',
url: '<string>',
parameters: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: '<unknown>',
items: '<unknown>',
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
responseMocks: [
{
name: '<string>',
response: '<string>',
when: {},
conditions: [{name: '<string>', validation: 'anything', value: '<string>'}],
isError: true
}
],
voice: {speechText: '<string>'},
dynamicVariables: {},
assignments: [{variable: '<string>', path: '<string>'}],
method: 'POST',
headers: {},
secretHeaders: {},
authConnectionId: '<string>',
timeoutMs: 60500,
followRedirects: true,
responseFields: ['<string>']
},
description: ''
})
};
fetch('https://app.cntillion.com/api/v2/tools', 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://app.cntillion.com/api/v2/tools",
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([
'name' => '<string>',
'configuration' => [
'kind' => 'HTTP_TOOL',
'url' => '<string>',
'parameters' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => '<unknown>',
'items' => '<unknown>',
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'responseMocks' => [
[
'name' => '<string>',
'response' => '<string>',
'when' => [
],
'conditions' => [
[
'name' => '<string>',
'validation' => 'anything',
'value' => '<string>'
]
],
'isError' => true
]
],
'voice' => [
'speechText' => '<string>'
],
'dynamicVariables' => [
],
'assignments' => [
[
'variable' => '<string>',
'path' => '<string>'
]
],
'method' => 'POST',
'headers' => [
],
'secretHeaders' => [
],
'authConnectionId' => '<string>',
'timeoutMs' => 60500,
'followRedirects' => true,
'responseFields' => [
'<string>'
]
],
'description' => ''
]),
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://app.cntillion.com/api/v2/tools"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\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://app.cntillion.com/api/v2/tools")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/tools")
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 \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "HTTP_TOOL",
"revision": 123,
"accessRole": "viewer",
"createdBy": "<string>",
"agentIds": [
"<string>"
],
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"method": "POST",
"headers": {},
"parameters": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"responseMocks": [
{
"name": "<string>",
"when": {},
"response": "<string>",
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": true
}
],
"voice": {
"interruptions": "allow",
"preToolSpeech": "auto",
"speechText": "<string>",
"executionMode": "immediate",
"executionSound": "none"
},
"errorHandling": "auto",
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"secretHeaders": {},
"auth": {
"type": "oauth2_client_credentials",
"tokenUrl": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"scope": "<string>",
"clientAuthentication": "basic"
},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": true,
"bodyEncoding": "json",
"responseFields": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
workspaceApiKeyworkspaceApiKeyHeader
Body
application/json
⌘I
Create a tool
curl --request POST \
--url https://app.cntillion.com/api/v2/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"parameters": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": true
}
],
"responseMocks": [
{
"name": "<string>",
"response": "<string>",
"when": {},
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": true
}
],
"voice": {
"speechText": "<string>"
},
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"method": "POST",
"headers": {},
"secretHeaders": {},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": true,
"responseFields": [
"<string>"
]
},
"description": ""
}
'import requests
url = "https://app.cntillion.com/api/v2/tools"
payload = {
"name": "<string>",
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"parameters": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": [
{
"name": "<string>",
"description": "",
"enumValues": ["<string>"],
"properties": "<unknown>",
"items": "<unknown>",
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"dynamicVariable": "<string>",
"staticValue": "<string>",
"required": True
}
],
"responseMocks": [
{
"name": "<string>",
"response": "<string>",
"when": {},
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": True
}
],
"voice": { "speechText": "<string>" },
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"method": "POST",
"headers": {},
"secretHeaders": {},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": True,
"responseFields": ["<string>"]
},
"description": ""
}
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({
name: '<string>',
configuration: {
kind: 'HTTP_TOOL',
url: '<string>',
parameters: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: [
{
name: '<string>',
description: '',
enumValues: ['<string>'],
properties: '<unknown>',
items: '<unknown>',
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
dynamicVariable: '<string>',
staticValue: '<string>',
required: true
}
],
responseMocks: [
{
name: '<string>',
response: '<string>',
when: {},
conditions: [{name: '<string>', validation: 'anything', value: '<string>'}],
isError: true
}
],
voice: {speechText: '<string>'},
dynamicVariables: {},
assignments: [{variable: '<string>', path: '<string>'}],
method: 'POST',
headers: {},
secretHeaders: {},
authConnectionId: '<string>',
timeoutMs: 60500,
followRedirects: true,
responseFields: ['<string>']
},
description: ''
})
};
fetch('https://app.cntillion.com/api/v2/tools', 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://app.cntillion.com/api/v2/tools",
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([
'name' => '<string>',
'configuration' => [
'kind' => 'HTTP_TOOL',
'url' => '<string>',
'parameters' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => [
[
'name' => '<string>',
'description' => '',
'enumValues' => [
'<string>'
],
'properties' => '<unknown>',
'items' => '<unknown>',
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'dynamicVariable' => '<string>',
'staticValue' => '<string>',
'required' => true
]
],
'responseMocks' => [
[
'name' => '<string>',
'response' => '<string>',
'when' => [
],
'conditions' => [
[
'name' => '<string>',
'validation' => 'anything',
'value' => '<string>'
]
],
'isError' => true
]
],
'voice' => [
'speechText' => '<string>'
],
'dynamicVariables' => [
],
'assignments' => [
[
'variable' => '<string>',
'path' => '<string>'
]
],
'method' => 'POST',
'headers' => [
],
'secretHeaders' => [
],
'authConnectionId' => '<string>',
'timeoutMs' => 60500,
'followRedirects' => true,
'responseFields' => [
'<string>'
]
],
'description' => ''
]),
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://app.cntillion.com/api/v2/tools"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\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://app.cntillion.com/api/v2/tools")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/tools")
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 \"name\": \"<string>\",\n \"configuration\": {\n \"kind\": \"HTTP_TOOL\",\n \"url\": \"<string>\",\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"enumValues\": [\n \"<string>\"\n ],\n \"properties\": \"<unknown>\",\n \"items\": \"<unknown>\",\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"dynamicVariable\": \"<string>\",\n \"staticValue\": \"<string>\",\n \"required\": true\n }\n ],\n \"responseMocks\": [\n {\n \"name\": \"<string>\",\n \"response\": \"<string>\",\n \"when\": {},\n \"conditions\": [\n {\n \"name\": \"<string>\",\n \"validation\": \"anything\",\n \"value\": \"<string>\"\n }\n ],\n \"isError\": true\n }\n ],\n \"voice\": {\n \"speechText\": \"<string>\"\n },\n \"dynamicVariables\": {},\n \"assignments\": [\n {\n \"variable\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"method\": \"POST\",\n \"headers\": {},\n \"secretHeaders\": {},\n \"authConnectionId\": \"<string>\",\n \"timeoutMs\": 60500,\n \"followRedirects\": true,\n \"responseFields\": [\n \"<string>\"\n ]\n },\n \"description\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "HTTP_TOOL",
"revision": 123,
"accessRole": "viewer",
"createdBy": "<string>",
"agentIds": [
"<string>"
],
"configuration": {
"kind": "HTTP_TOOL",
"url": "<string>",
"method": "POST",
"headers": {},
"parameters": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": [
{
"description": "",
"type": "string",
"name": "<string>",
"required": true,
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>",
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"items": {
"description": "",
"type": "string",
"enumValues": [
"<string>"
],
"properties": "<unknown>",
"items": "<unknown>"
}
}
}
}
},
"location": "path",
"valueSource": "llm",
"dynamicVariable": "<string>",
"staticValue": "<string>"
}
],
"responseMocks": [
{
"name": "<string>",
"when": {},
"response": "<string>",
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
],
"isError": true
}
],
"voice": {
"interruptions": "allow",
"preToolSpeech": "auto",
"speechText": "<string>",
"executionMode": "immediate",
"executionSound": "none"
},
"errorHandling": "auto",
"dynamicVariables": {},
"assignments": [
{
"variable": "<string>",
"path": "<string>"
}
],
"secretHeaders": {},
"auth": {
"type": "oauth2_client_credentials",
"tokenUrl": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"scope": "<string>",
"clientAuthentication": "basic"
},
"authConnectionId": "<string>",
"timeoutMs": 60500,
"followRedirects": true,
"bodyEncoding": "json",
"responseFields": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}