curl --request PATCH \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"enabled": false,
"expires_in": "7d",
"label": "Demo for Dr Rao's clinic"
}
EOFimport requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
payload = {
"enabled": False,
"expires_in": "7d",
"label": "Demo for Dr Rao's clinic"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false, expires_in: '7d', label: 'Demo for Dr Rao\'s clinic'})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => false,
'expires_in' => '7d',
'label' => 'Demo for Dr Rao\'s clinic'
]),
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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
payload := strings.NewReader("{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}")
.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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}"
response = http.request(request)
puts response.read_body{
"agent_id": "0b6f3c1a-2d4e-4f5a-8b9c-1d2e3f4a5b6c",
"call_count": 3,
"created_at": "2026-10-19T10:00:00.000Z",
"enabled": true,
"expires_at": "2026-10-26T10:00:00.000Z",
"id": "6d1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
"label": "Demo for Dr Rao's clinic",
"status": "active",
"url": "https://brilo.ai/talk#q3Vx9mT2bK7yR1nW8pZ4cL6hJ0dF5sA2gE9uY3iO7kM"
}{
"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"
}
}{
"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"
}
}Update a share link
Pause it (enabled false, which also ends any call running through it), turn it back on (enabled true), change its label, or set a new expiry counted from now. Send only what you want to change.
curl --request PATCH \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"enabled": false,
"expires_in": "7d",
"label": "Demo for Dr Rao's clinic"
}
EOFimport requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
payload = {
"enabled": False,
"expires_in": "7d",
"label": "Demo for Dr Rao's clinic"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false, expires_in: '7d', label: 'Demo for Dr Rao\'s clinic'})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => false,
'expires_in' => '7d',
'label' => 'Demo for Dr Rao\'s clinic'
]),
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.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}"
payload := strings.NewReader("{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}")
.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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": false,\n \"expires_in\": \"7d\",\n \"label\": \"Demo for Dr Rao's clinic\"\n}"
response = http.request(request)
puts response.read_body{
"agent_id": "0b6f3c1a-2d4e-4f5a-8b9c-1d2e3f4a5b6c",
"call_count": 3,
"created_at": "2026-10-19T10:00:00.000Z",
"enabled": true,
"expires_at": "2026-10-26T10:00:00.000Z",
"id": "6d1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
"label": "Demo for Dr Rao's clinic",
"status": "active",
"url": "https://brilo.ai/talk#q3Vx9mT2bK7yR1nW8pZ4cL6hJ0dF5sA2gE9uY3iO7kM"
}{
"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"
}
}{
"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.
Body
false pauses the link and ends any call running through it; true turns it back on. Sending expires_in restarts the clock from now.
false
How long the link works. Defaults to 7d.
1d, 7d, 30d, never "7d"
A note for you, for example who the link is for. Up to 120 characters.
120"Demo for Dr Rao's clinic"
Response
"0b6f3c1a-2d4e-4f5a-8b9c-1d2e3f4a5b6c"
Calls started through this link so far.
3
"2026-10-19T10:00:00.000Z"
false while the link is paused.
true
When the link stops working. null means it never expires.
"2026-10-26T10:00:00.000Z"
"6d1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b"
"Demo for Dr Rao's clinic"
active: works now. disabled: paused. expired: past expires_at. revoked: turned off for good.
active, disabled, expired, revoked "active"
The link to send. Anyone who opens it can talk to the agent in their browser. null only for a link made before a security key change: it still works for whoever has it, but cannot be shown again. Replace it to get a new one.
"https://brilo.ai/talk#q3Vx9mT2bK7yR1nW8pZ4cL6hJ0dF5sA2gE9uY3iO7kM"
