> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autonomyai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Full Mode

> Proxy the app's API calls to your staging backend.

### `get_setup_files`

<Icon icon="eye" /> Read-only

Get the workspace's setup files (e.g. .env). Part of Full Mode setup.

<ParamField path="project_id" type="UUID" required>Project UUID.</ParamField>
<ParamField path="workspace_id" type="UUID" required>Workspace UUID.</ParamField>

### `update_setup_files`

Save the workspace's setup files (e.g. .env) — used to wire Full Mode.

<ParamField path="project_id" type="UUID" required>Project UUID.</ParamField>
<ParamField path="workspace_id" type="UUID" required>Workspace UUID.</ParamField>
<ParamField path="files" type="array" required>Full set of setup files to save (replaces existing). Each item is {file_path, file_content}, e.g. the project's .env pointing the front-end at the staging API.</ParamField>

### `get_preview_proxy_config`

<Icon icon="eye" /> Read-only

Get the Full Mode dev-preview proxy config (staging hosts + header rules).

<ParamField path="project_id" type="UUID" required>Project UUID.</ParamField>
<ParamField path="workspace_id" type="UUID" required>Workspace UUID.</ParamField>

### `update_preview_proxy_config`

Configure Full Mode: point the app's API calls at a staging backend.

This is the key Full Mode setup step — it lets the whole app run in Autonomy
(front-end in the sandbox) while talking to the project's existing staging
backend. Any user with project access may configure it; gated by the
project\_cors\_proxy flag in FEI.

<ParamField path="project_id" type="UUID" required>Project UUID.</ParamField>
<ParamField path="workspace_id" type="UUID" required>Workspace UUID.</ParamField>
<ParamField path="cors_hosts" type="array" required>Upstream backend hosts to proxy the app's API calls to — i.e. the project's STAGING backend, e.g. \['api.staging.example.com']. This is the core of Full Mode (front-end here, backend at staging).</ParamField>
<ParamField path="forwarded_origin" type="string">Origin the proxy presents to the backend (Origin/Referer). Use '\${PUBLIC_ORIGIN}' for auth providers (Clerk/NextAuth) that need it. Omit/null to keep the currently-configured origin (a hosts-only update won't clear it).</ParamField>
