Whether Ask AI on the docs site is available
curl --request GET \
--url https://app.trustivan.com/api/v1/docs/askimport requests
url = "https://app.trustivan.com/api/v1/docs/ask"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/docs/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/docs/ask"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"available": true
}Whether Ask AI on the docs site is available
The docs site’s Ask AI widget calls this once per visit and hides itself when the answer is false: no platform Anthropic key is set. Public, and answered only to the docs origin over CORS.
GET
/
docs
/
ask
Whether Ask AI on the docs site is available
curl --request GET \
--url https://app.trustivan.com/api/v1/docs/askimport requests
url = "https://app.trustivan.com/api/v1/docs/ask"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/docs/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/docs/ask"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"available": true
}