Open the workspace activation page
When customers arrive at this page, they already have the Tresor API but have not yet activated the Tresor Workspace product. The page checks their status on load and either activates automatically or shows the manual activation UI.
Automatic activation
When the page loads, it checks whether the customer already has a workspace or whether they have no products at all. If they have no products yet, the page activates the workspace silently and redirects to the main dashboard. They do not see any controls.
If they already have a workspace, the page redirects them to the main dashboard as well.
If the page cannot reach the status endpoint, it falls through to the manual UI instead of failing.
Manual activation UI
The page shows three buttons when a customer needs to choose.
Activate Workspace button. Triggers the activation request. The button shows a loading indicator while the request is in flight. On success, the page displays a toast notification that reads "Workspace activated" with the message "Your Tresor Workspace is ready," and navigates to the main dashboard. On failure, a toast notification shows "Activation failed" with the error message from the server.
Take me to the API Dashboard instead button. Appears only if the page could derive a valid API dashboard URL. Opens the API dashboard in a new tab. The page derives this URL from the current host so that test deployments link to the correct environment (for example, chat.test.tresor.co links to console.test.tresor.co, not production).
Sign out button. Logs the customer out and returns them to the login page.
Loading state
When the page first loads, it shows the Tresor logo but hides the card and buttons while it checks the customer's activation status. Once the status check completes, the card appears.
