curl --request POST \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate', 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}/regenerate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/regenerate"
req, _ := http.NewRequest("POST", 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.post("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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"
}
}Replace a share link
Turns this link off and makes a new one with a new url and the same label. The old link stops working at once and any call running through it ends. The new link expires in 7 days, or never if the old one never expired. Replacing a link that was already replaced returns the current link.
curl --request POST \
--url https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate', 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}/regenerate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/regenerate"
req, _ := http.NewRequest("POST", 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.post("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brilo.ai/v1/agent/{agent_id}/share-link/{link_id}/regenerate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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 to replace.
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"
