> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/archive/features-legacy-databutton-web-app-builder/workspace-features/access.md).

# Access

What it is: Access controls who can use your app and individual pages/APIs, with support for authentication requirements and domain whitelisting.

How to access:

* Toggle page/API authentication: Click the three dots next to any page or API in the Code Editor

Key features:

* Page-level auth: Require login for specific pages
* API-level auth: Protect backend endpoints
* Stack Auth integration: Built-in user authentication
* Visual indicators: Shield icons show protected pages/APIs
* Domain whitelisting: Restrict access to specific email domains (advanced)

How to use:

1. New pages and APIs are protected by default (shield icon visible)
2. Click the three dots next to a page/API to toggle authentication
3. Unprotected pages/APIs are accessible to anyone
4. Protected pages require users to sign in

Authentication pages:

* /auth/sign-in - User login
* /auth/sign-up - New user registration
* /auth/account-settings - User profile management
* /auth/sign-out - Logout

Tips:

* Keep admin pages and sensitive APIs protected
* Public landing pages should have authentication disabled
* OAuth login (Google, GitHub) must be tested in a new tab, not the iframe preview
* The shield icon in the sidebar indicates protection status


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.riff.ai/archive/features-legacy-databutton-web-app-builder/workspace-features/access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
