Open a read-only session in the live demo
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/demoimport requests
url = "https://app.trustivan.com/api/v1/auth/demo"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/demo', 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/auth/demo"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"user": {}
}Open a read-only session in the live demo
“View live demo”: signs the caller into the deployment’s demo account
(DEMO_ACCOUNT_EMAIL), a viewer of the seeded demo organization and
nothing else. No credential is asked for; the account is public by
design.
What bounds it: the account must be a viewer of exactly one
organization, checked on every call, or nothing is issued; every
write the session attempts, on any route, is refused with 403 and
code demo_read_only; its requests are rate limited per client
address rather than per account; and it ends after
DEMO_SESSION_MINUTES (default 60) with no refresh token to renew it.
Any refresh cookie already in the browser is cleared.
Rate limited per address with the other sign-in routes.
POST
/
auth
/
demo
Open a read-only session in the live demo
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/demoimport requests
url = "https://app.trustivan.com/api/v1/auth/demo"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/demo', 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/auth/demo"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"user": {}
}