LogoLogo
Build appsContact API support
Build apps
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
Build apps
  • Build with Ecwid apps
  • Ecwid API features
  • Get started
    • Set up your dev environment in Ecwid
    • Make your first API request
    • Add more features to your custom app
    • API glossary
  • Develop apps
    • What is an Ecwid app
    • Private and public Ecwid apps
    • App settings
    • Community libraries
  • Launch apps
    • Public apps overview
    • Monetize public apps
    • Steps to go live with a public app
    • Native and external apps
      • Access store data from the app
      • Build user settings page for Ecwid admin
        • Use Native app JS SDK
        • Deep linking
        • Manage personal user settings storage
  • Contact Ecwid API support team

Lightspeed® 2025

On this page
  • About App storage
  • Data types in App storage
  • Limits
  • Manage user settings with REST API

Was this helpful?

  1. Launch apps
  2. Native and external apps
  3. Build user settings page for Ecwid admin

Manage personal user settings storage

When users fill out settings in an app, the app needs to:

  • Store user settings somewhere safe.

  • Have access to user settings later.

  • Support simultaneous access to user settings in different stores.

For Native apps, Ecwid provides an out-of-the-box storage for the safe storing and managing of personal user data named Application storage.

About App storage

App storage allows storing data on Ecwid servers and accessing it using REST API instead of developing SQL databases on your server. Application storage is secure and fast. It also allows you to split private and public user data with only public settings being available on the storefront.

Application storage is a JSON array of objects, where each data entry is a key-value object. Every store that installs the app gets its own storage. App storage data entries example:

[
  {
    "key": "show_reviews_in_app",
    "value": "true"
  },
  {
    "key": "user_email",
    "value": "ec.apps@lightspeedhq.com"
  },
  {
    "key": "public",
    "value": "{'button_color': 'red', 'button_text': 'Email us', 'corner': 'TOP_RIGHT', 'show': 'true'}"
  }
]

Data types in App storage

App storage has both private and public data entries. Data type is defined by the key used to store it. The "public" key name is reserved for the public data. We recommend using it as the application config. Manage it from the settings page and get it on the storefront with a JavaScript call.

Public key example:

  {
    "key": "public",
    "value": "Store public app config for storefront here"
  }

All other keys are considered private, and therefore their data is unavailable to other applications or users, or through the Ecwid.getAppPublicConfig() method on the storefront.

Limits

Keys you save in the application storage are only available to your app. Other applications cannot read these keys or even know if you have any keys saved.

Accessing keys works through REST API requests. The only exception is the "public" key which is also available on the storefront.

The size limit for private keys is 1MB, and for public keys - 256KB.

Manage user settings with REST API

App storage works through REST API requests with default HTTP request types: GET, PUT, POST, and DELETE.

Find request descriptions for managing App storage below:

Last updated 5 days ago

Was this helpful?

Read more about access to the "public" key on the storefront:

Get public app details
Get all app storage data
Get specific app storage data
Add app storage data
Update specific app storage data
Delete specific app storage data