Docs

App Settings

Your app keeps one JSON object of settings for each store that installs it. Your storefront script receives it on every page, so you need no database of your own to remember a store's choices.

These endpoints accept only an app access token and need no permission: an app always reaches its own settings, and never another app's.

Read the Settings

GET/v1/app-data
cURL
curl "https://api.storeep.com/v1/app-data" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
200 OK
{
    "data": {
        "settings": {
            "badge_color": "#111827",
            "show_on_mobile": true
        },
        "is_script_enabled": true,
        "updated_at": "2026-11-28 10:30:00"
    }
}
FieldTypeDescription
settingsobjectThe object your app last saved, {} before the first save.
is_script_enabledbooleanWhether the merchant lets your storefront script run. Only the merchant can change it, with the Storefront script switch in your app's window.
updated_atstring | nullA date in UTC, null while the store has no settings row. It can be set before your first save: the merchant saving the script switch creates the row, with empty settings.

Replace the Settings

PUT/v1/app-data

Send the whole object under settings. It replaces the stored one, so include every key you want to keep. The storefront picks up the change on its next page view.

cURL
curl -X PUT "https://api.storeep.com/v1/app-data" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"settings": {"badge_color": "#111827", "show_on_mobile": true}}'
200 OK
{
    "data": {
        "settings": {
            "badge_color": "#111827",
            "show_on_mobile": true
        },
        "is_changed": true
    }
}

is_changed is false when the object was the same as the stored one. Nothing was written then.

Limits

  • settings must be a JSON object, never a list or a single value. A list or a value answers 422.
  • The object holds at most 16 KB, measured as Storeep stores it. A larger one answers 413 and nothing is saved.
  • A null character (\u0000) anywhere in the object is refused with 422.
  • The settings are sent to every storefront page your script runs on. Keep them to what the script needs, and never store a secret in them.
  • Every save counts toward your app's daily write limit, see Rate Limits.
  • Uninstalling your app deletes these settings.