curl --request PATCH \
--url https://api.nekt.ai/api/v1/live-connections/{slug}/tools/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"connector": "<string>",
"config": "<unknown>",
"callback_webhook": {
"url": "<string>",
"header_name": "<string>",
"header_value": "<string>"
},
"active": true,
"slug": "<string>",
"description": "<string>",
"available_tools": [
"<string>"
]
}
'import requests
url = "https://api.nekt.ai/api/v1/live-connections/{slug}/tools/"
payload = {
"connector": "<string>",
"config": "<unknown>",
"callback_webhook": {
"url": "<string>",
"header_name": "<string>",
"header_value": "<string>"
},
"active": True,
"slug": "<string>",
"description": "<string>",
"available_tools": ["<string>"]
}
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({
connector: '<string>',
config: '<unknown>',
callback_webhook: {url: '<string>', header_name: '<string>', header_value: '<string>'},
active: true,
slug: '<string>',
description: '<string>',
available_tools: ['<string>']
})
};
fetch('https://api.nekt.ai/api/v1/live-connections/{slug}/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://api.nekt.ai/api/v1/live-connections/{slug}/tools/",
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([
'connector' => '<string>',
'config' => '<unknown>',
'callback_webhook' => [
'url' => '<string>',
'header_name' => '<string>',
'header_value' => '<string>'
],
'active' => true,
'slug' => '<string>',
'description' => '<string>',
'available_tools' => [
'<string>'
]
]),
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://api.nekt.ai/api/v1/live-connections/{slug}/tools/"
payload := strings.NewReader("{\n \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\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://api.nekt.ai/api/v1/live-connections/{slug}/tools/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/live-connections/{slug}/tools/")
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 \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector": "<string>",
"connector_version": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_config": {},
"has_callback_webhook": true,
"credentials_version": 123,
"draft": true,
"error": true,
"archived": true,
"tags": [
"<unknown>"
],
"permission_level": "<string>",
"created_by": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active": true,
"slug": "<string>",
"description": "<string>",
"available_tools": [
"<string>"
]
}Update Connection Tools
List the connection’s tools (GET), or edit its available set (PATCH). The available set is streams-style — a tool is either in it or gone, there is no per-tool status.
GET returns the caller’s view: managers/bypassed principals (and flag-off orgs) get
the full snapshot with the transitional enabled flag (the management view);
everyone else gets only the tools their accesses give them (spec §5.7).
PATCH accepts the declarative replace {tools: [names]} (the full desired set,
mirror of stream selection) or, transitionally until the FE ships, the legacy
{name, enabled} toggle mapped onto the set. Writes serialize on the connection
row lock, and removals cascade into existing access tool scopes (§5.3) — re-adding
a tool later does not restore explicitly-scoped accesses.
curl --request PATCH \
--url https://api.nekt.ai/api/v1/live-connections/{slug}/tools/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"connector": "<string>",
"config": "<unknown>",
"callback_webhook": {
"url": "<string>",
"header_name": "<string>",
"header_value": "<string>"
},
"active": true,
"slug": "<string>",
"description": "<string>",
"available_tools": [
"<string>"
]
}
'import requests
url = "https://api.nekt.ai/api/v1/live-connections/{slug}/tools/"
payload = {
"connector": "<string>",
"config": "<unknown>",
"callback_webhook": {
"url": "<string>",
"header_name": "<string>",
"header_value": "<string>"
},
"active": True,
"slug": "<string>",
"description": "<string>",
"available_tools": ["<string>"]
}
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({
connector: '<string>',
config: '<unknown>',
callback_webhook: {url: '<string>', header_name: '<string>', header_value: '<string>'},
active: true,
slug: '<string>',
description: '<string>',
available_tools: ['<string>']
})
};
fetch('https://api.nekt.ai/api/v1/live-connections/{slug}/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://api.nekt.ai/api/v1/live-connections/{slug}/tools/",
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([
'connector' => '<string>',
'config' => '<unknown>',
'callback_webhook' => [
'url' => '<string>',
'header_name' => '<string>',
'header_value' => '<string>'
],
'active' => true,
'slug' => '<string>',
'description' => '<string>',
'available_tools' => [
'<string>'
]
]),
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://api.nekt.ai/api/v1/live-connections/{slug}/tools/"
payload := strings.NewReader("{\n \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\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://api.nekt.ai/api/v1/live-connections/{slug}/tools/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/live-connections/{slug}/tools/")
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 \"connector\": \"<string>\",\n \"config\": \"<unknown>\",\n \"callback_webhook\": {\n \"url\": \"<string>\",\n \"header_name\": \"<string>\",\n \"header_value\": \"<string>\"\n },\n \"active\": true,\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"available_tools\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector": "<string>",
"connector_version": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_config": {},
"has_callback_webhook": true,
"credentials_version": 123,
"draft": true,
"error": true,
"archived": true,
"tags": [
"<unknown>"
],
"permission_level": "<string>",
"created_by": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active": true,
"slug": "<string>",
"description": "<string>",
"available_tools": [
"<string>"
]
}Authorizations
API Key authentication. Format: 'x-api-key: api_key'
Path Parameters
Stable identifier and tool namespace; globally unique. Defaults to the connector slug (uniquified) when left blank.
Body
A connection to an external system that AI agents can call tools against.
Connector of this connection (Expandable)
Where Nekt announces that someone finished configuring this connection through a setup link.
Show child attributes
Show child attributes
The user on/off toggle. Activating clears draft and error.
Stable identifier and tool namespace; globally unique. Defaults to the connector slug (uniquified) when left blank.
256^[-a-zA-Z0-9_]+$Response
A connection to an external system that AI agents can call tools against.
Connector of this connection (Expandable)
Show child attributes
Show child attributes
Bumped whenever connector_config changes (in the viewset/serializer, not a signal); the MCP uses it to invalidate its credential cache
Not yet activated for the first time; the setup-link flow is only valid while draft (or error).
Set by the credential broker on a refused OAuth refresh; the connection needs a reconnect and is not served while set.
Set via the archive/unarchive endpoints (mirrors Pipeline.archived); archived connections are never served to the MCP server.
Show child attributes
Show child attributes
The user on/off toggle. Activating clears draft and error.
Stable identifier and tool namespace; globally unique. Defaults to the connector slug (uniquified) when left blank.
256^[-a-zA-Z0-9_]+$Was this page helpful?