← Developer Hub
Getting Started
Storage Modes
Choose the right storage mode for your page based on data visibility and access requirements.
| Mode | Data Visibility | Who Can Write | Use Case |
|---|---|---|---|
page | No data storage | N/A | Static pages, informational content, no user data needed |
solo_app | Private to each user | Owner only | Personal apps: todo lists, notes, habit trackers, journals |
team_app | Team members only | Team members (role-based) | Team collaboration: project boards, internal wikis, shared dashboards |
social_app | Public (everyone can read) | Any logged-in user (own records) | User submissions, profiles, leaderboards, comments, reviews. Use findMine() for per-user data. |
Tip: social_app can handle per-user data via findMine() while also supporting shared/public content. Only choose solo_app if the data must be completely hidden from other users.
Configuring Storage Mode
Set the storage mode when creating a page via POST /api/pages, or update it later using the storage config endpoint.
Endpoints
GET
/api/pages/:id/storage-config
Get current storage configuration
PUT
/api/pages/:id/storage-config
Update storage configuration
Example: Update Storage Mode
curl -X PUT \
-H "Authorization: Bearer vm_your_token_here" \
-H "Content-Type: application/json" \
-d '{"default_mode": "team_app"}' \
https://visimade.com/api/pages/123/storage-configRequest Body
| Field | Type | Description |
|---|---|---|
default_mode | string | Storage mode: page, solo_app, team_app, or social_app |
allow_solo_app | boolean | Allow solo app data storage |
allow_team_app | boolean | Allow team app data storage |
allow_social_app | boolean | Allow social app data storage |
On this page
- Overview
- Configuring Storage Mode