Switch a connected provider on or off for the Companion
curl --request PUT \
--url https://api.kombify.io/v1/connectors/providers/{providerId}/companion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true
}'import requests
url = "https://api.kombify.io/v1/connectors/providers/{providerId}/companion"
payload = { "active": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: true})
};
fetch('https://api.kombify.io/v1/connectors/providers/{providerId}/companion', 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.kombify.io/v1/connectors/providers/{providerId}/companion",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'active' => true
]),
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.kombify.io/v1/connectors/providers/{providerId}/companion"
payload := strings.NewReader("{\n \"active\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.kombify.io/v1/connectors/providers/{providerId}/companion")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/connectors/providers/{providerId}/companion")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": true\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"reason": "<string>",
"error_code": "<string>",
"reason_code": "<string>",
"service": "<string>",
"required_features": [
"<string>"
],
"missing_features": [
"<string>"
],
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
},
"capability": "<string>"
}connectors
Switch a connected provider on or off for the Companion
The person switches their own connection of a provider on or off for their Companion (kombify-ai). The connection is the directory’s (no client-supplied grant, connector or binding id); off revokes the Companion’s binding and keeps the connection. Idempotent. Human owner only; requires the supplydock.access flag. companion.reason in the directory says where there is no switch (not_connected, always_on, not_supported).
PUT
/
v1
/
connectors
/
providers
/
{providerId}
/
companion
Switch a connected provider on or off for the Companion
curl --request PUT \
--url https://api.kombify.io/v1/connectors/providers/{providerId}/companion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true
}'import requests
url = "https://api.kombify.io/v1/connectors/providers/{providerId}/companion"
payload = { "active": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: true})
};
fetch('https://api.kombify.io/v1/connectors/providers/{providerId}/companion', 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.kombify.io/v1/connectors/providers/{providerId}/companion",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'active' => true
]),
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.kombify.io/v1/connectors/providers/{providerId}/companion"
payload := strings.NewReader("{\n \"active\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.kombify.io/v1/connectors/providers/{providerId}/companion")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/connectors/providers/{providerId}/companion")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": true\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"reason": "<string>",
"error_code": "<string>",
"reason_code": "<string>",
"service": "<string>",
"required_features": [
"<string>"
],
"missing_features": [
"<string>"
],
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
},
"capability": "<string>"
}