Turn off a share link
curl --request DELETE \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_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.brilo.ai/v1/agent/{agent_id}/share-link/{link_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 => [
"Authorization: Bearer <token>"
],
]);
$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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "6d1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
"revoked": true
}{
"error_code": "validation_failed",
"message": "Filter 1: \"Age\" is a number field, so the condition must be one of: is, gt, gte, lt, lte, between, empty, not_empty.",
"status": 400,
"details": {
"allowed": [
"is",
"gt"
],
"field": "age",
"op": "has"
}
}{
"error_code": "validation_failed",
"message": "Filter 1: \"Age\" is a number field, so the condition must be one of: is, gt, gte, lt, lte, between, empty, not_empty.",
"status": 400,
"details": {
"allowed": [
"is",
"gt"
],
"field": "age",
"op": "has"
}
}Share links
Turn off a share link
Turns the link off for good and ends any call running through it. Anyone who opens it after this is told it has been turned off. Turning off a link twice changes nothing.
DELETE
/
agent
/
{agent_id}
/
share-link
/
{link_id}
Turn off a share link
curl --request DELETE \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_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.brilo.ai/v1/agent/{agent_id}/share-link/{link_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 => [
"Authorization: Bearer <token>"
],
]);
$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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "6d1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
"revoked": true
}{
"error_code": "validation_failed",
"message": "Filter 1: \"Age\" is a number field, so the condition must be one of: is, gt, gte, lt, lte, between, empty, not_empty.",
"status": 400,
"details": {
"allowed": [
"is",
"gt"
],
"field": "age",
"op": "has"
}
}{
"error_code": "validation_failed",
"message": "Filter 1: \"Age\" is a number field, so the condition must be one of: is, gt, gte, lt, lte, between, empty, not_empty.",
"status": 400,
"details": {
"allowed": [
"is",
"gt"
],
"field": "age",
"op": "has"
}
}Authorizations
Enter your API key (Bearer token)
Path Parameters
The agent the link opens a call with.
The id of the link.
