curl --request DELETE \
--url https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{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.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyDelete Setup Token
Setup links for a connection, so a third party fills in credentials in their own browser.
Create one to get a token, then send its recipient to {WEB_APP_URL}/lcl/{token}: they
configure the connection without a Nekt account, and the credentials never pass through
you. Optionally restrict what the link exposes with connector_config_fields, and have
the connection announce completion with its callback_webhook.
A link minted while the connection awaits setup (a draft) stops working once it is set up. A link minted for a connection already in use updates it: it keeps working until it expires, is deleted or the connection is archived, and a write through it must leave every required field filled.
The token is returned in clear text only when it is created, and is redacted on every later read. Managing setup links requires manager access on the connection — the token is a config-write capability, so listing links is as sensitive as creating one.
curl --request DELETE \
--url https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{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.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/live-connections/{live_connection_slug}/setup-tokens/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyWas this page helpful?