Open the website analytics
const url = 'https://example.com/console/analytics-sso/start';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"target":"site","view":"overview"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/console/analytics-sso/start \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "target": "site", "view": "overview" }'Makes a code good for one use in the next minute and answers with the address that spends it on the analytics host. The browser goes there next and is signed in to the analytics for eight hours, for as long as the person stays staff, landing on the chosen figures: site (getbottle.app, the default) or app (my.getbottle.app). Where Umami sign-in is set up, that is Umami itself as the person’s own view-only login, on the chosen view (the overview unless told otherwise); otherwise the read-only share page, and view is ignored. Recorded in the console log. Answers 404 where the analytics, or the chosen figures, are not set up.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Responses
Section titled “Responses”Where to send the browser
object
Examplegenerated
{ "url": "https://example.com"}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not Bottle staff, or no two-step sign-in
object
Example
{ "error": "not_found", "message": "Customer not found"}The analytics, or the chosen figures, are not set up on this deployment
object
Example
{ "error": "not_found", "message": "Customer not found"}Figures it does not know
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many in the last minute
object
Example
{ "error": "not_found", "message": "Customer not found"}