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-datacURL
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"
}
}| Field | Type | Description |
|---|---|---|
settings | object | The object your app last saved, {} before the first save. |
is_script_enabled | boolean | Whether the merchant lets your storefront script run. Only the merchant can change it, with the Storefront script switch in your app's window. |
updated_at | string | null | A 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-dataSend 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
settingsmust be a JSON object, never a list or a single value. A list or a value answers422.- The object holds at most 16 KB, measured as Storeep stores it. A larger one answers
413and nothing is saved. - A null character (
\u0000) anywhere in the object is refused with422. - 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.