Skip to main content

Mobile App Configuration

GET /v1/mobile/config tells the native app what it needs before anyone signs in. It needs no credential, returns the same answer to everyone, and is cacheable (Cache-Control: public, max-age=300). A raised minimum version reaches installed apps within about five minutes.

{
"minimumVersion": { "android": "1.2.0", "ios": "0.0.0" },
"featureFlags": ["sendDiagnostics"],
"purchase": [
{ "platform": "android", "storefront": "*", "action": "info" },
{ "platform": "ios", "storefront": "US", "action": "external_link", "url": "https://app.budgetthing.com/plans" }
]
}
FieldMeaning
minimumVersion.android, .iosOldest build that may run, as major.minor.patch. 0.0.0 means no minimum. A build below it shows the Update required screen.
featureFlagsNames of enabled flags, sorted. A flag not listed is off.
purchaseExplicit entries. storefront is an upper-case ISO 3166-1 alpha-2 code, or * for the platform default. action is hidden, info (the app shows its own fixed note that plans are managed on the web) or external_link (the app opens url, always HTTPS, in the system browser). A platform and storefront with no entry, and no * entry for the platform, is hidden.

The server sends no display text, so the app owns the wording and its translations.

Deployment settings​

These API environment variables control the response. The API refuses to start on an invalid value.

VariableValue
MOBILE_MIN_VERSION_ANDROID, MOBILE_MIN_VERSION_IOSmajor.minor.patch. Empty means no minimum.
MOBILE_FEATURE_FLAGSComma-separated camelCase names.
MOBILE_PURCHASE_ACTIONSJSON array of the purchase entries above. Unknown fields, duplicates, a non-HTTPS url and a url on an action that isn't external_link are rejected.

Account deletion with a mobile token​

The app uses the same self-service deletion endpoints as the web (GET /v1/me/deletion-preview, POST /v1/me/deletion) with its Kratos session token (X-Session-Token). The confirmation token is bound to that session as on the web. The checks are unchanged: a sign-in older than 15 minutes gets 403 RECENT_AUTHENTICATION_REQUIRED, so the app asks you to sign in again inside the app (login/api?refresh=true); personal access tokens are refused; the exact phrase DELETE is required.