Remove a connected account
curl --request DELETE \
--url https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId} \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}"
headers = {"Cookie": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}', 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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Cookie: <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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Cookie", "<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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"mode": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Connected accounts
Remove a connected account
Disconnects an account and clears it from any workflow steps that selected it. soft (the default) is Remove, hard is Disconnect, and purge permanently deletes the account and its data (admins only, irreversible). Only the person who connected it, or an admin, can remove it.
DELETE
/
workspaces
/
{workspaceId}
/
tool-accounts
/
{accountId}
Remove a connected account
curl --request DELETE \
--url https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId} \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}"
headers = {"Cookie": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}', 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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Cookie: <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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Cookie", "<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://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workspaces/{workspaceId}/tool-accounts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"mode": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
The full Cookie header copied from a signed-in connie.ai browser request. See the Authentication page.
Query Parameters
Available options:
soft, hard, purge