📱 Webviews
URL Parameters & Routes

URL Parameters & Routes

Base URL ({WEBVIEW_URL}) is provided by Lynes when your hosted Webview is provisioned.

{WEBVIEW_URL}/{path}?lang=de&platform=ios&entrypoint=leaderboard

Query parameters

ParameterRequiredValuesDescription
langNoe.g. de, enUI language. Default: de
platformNoios, android, webPlatform hint (accessibility). Default: web
darkmodeNotrue, falseTheme on first paint
entrypointNoleaderboard, challenges, offers, shopControls when back closes the Webview and returns to your app (see below)
typeNolocal, onlineOnly on /shops: initial tab (case-insensitive)

entrypoint (back navigation)

entrypoint is saved in sessionStorage for the tab session. It does not navigate to a route for you.

ValueUse together with pathBack closes the Webview (returns to your app) when user is on
leaderboard/leaderboard (and related sub-flows)/leaderboard
challenges/challenges/challenges
offers/offers/offers
shop/shops or /shops/{shopId} with entrypoint=shop/shops or shop detail (see Native Bridge)

Correct:

{WEBVIEW_URL}/leaderboard?entrypoint=leaderboard&lang=de&platform=ios

Incorrect (opens overview, only stores entrypoint for back logic):

{WEBVIEW_URL}/overview?entrypoint=leaderboard

type on /shops

ValueTab
localLocal / in-person
onlineOnline
{WEBVIEW_URL}/shops?type=online&entrypoint=shop&lang=de

Not supported on page URLs

ParameterNotes
userIdIgnored — user comes from JWT sub after session exchange
tokenNot for page loads; debug endpoint /api/auth only

Routes

Paths are relative to {WEBVIEW_URL}:

PathScreen
/Home (overview content)
/overviewGamification overview
/challengesChallenges
/leaderboardLeaderboard
/leaderboard/infoLeaderboard info
/offersOffers / rewards
/offers/{offerId}Offer detail
/offers/{offerId}/bookBook / redeem flow
/shopsShops list
/shops/{shopId}Shop detail
/shops/{shopId}/addressesAddresses
/redeem/{couponId}Redeem coupon
/reward-historyReward history
/historyActivity history
/surveysSurveys
/how-it-worksHow it works

You can deep-link to any path. Set entrypoint when the user should leave the Webview (back to your app) from that feature’s root screen.

Examples

{WEBVIEW_URL}/overview?lang=de&platform=ios&darkmode=false
{WEBVIEW_URL}/challenges?lang=en&platform=android&entrypoint=challenges
{WEBVIEW_URL}/offers/{offerId}?lang=de&platform=ios

Webview-internal APIs

Called by the hosted app, not by your native code:

RouteMethodPurpose
/api/token-exchangePOSTJWT → session
/api/authGET, POSTDebug JWT inspection

Related