Skip to main content

URL conventions and query parameters

Standardised URL patterns and query parameters ensure consistent behaviour across all SSO (OAuth) screens and in-app actions.

URL structure standards

Base URL requirements

All SSO (OAuth) screens must be hosted at consistent endpoints relative to the broker's CRM URL:

  • Base Pattern: https://brokerCrmUrl.com/
  • Consistency: Avoid mixing domains (broker.com and my.broker.com should not coexist)
  • SSL Required: All URLs must use HTTPS protocol

Screen URL patterns

Login/signup screen

https://brokerCrmUrl.com/auth/login

Trading account creation

https://brokerCrmUrl.com/account/create

In-app action screens

https://brokerCrmUrl.com/inapp/{action}

Success/callback URLs

https://brokerCrmUrl.com/callback/success

Mandatory query parameters

Core parameters

ParameterScreen(s)Required?Data typeDescription
tokenIn-app actionsYesstringThe OT token required for authorisation.
accountIn-app actionsYes (deposits/withdrawals); No (others)integerThe number of a specific trading account linked to the user.

Optional query parameters

Display and behaviour parameters

ParameterScreen(s)Required?Data typeDescription
langAll screensNostringThe language of the device OS. Takes Alpha-2 (ISO 639-1) codes.
sourceAll screensNostringApplication type: "Web", "Android", "iOS", "MacOS", "Desktop".
themeAll screensNostringPreferred colour scheme: "light" or "dark".
firstLoginLogin/signupNobooleanFlag for first login attempt on current device.
partnerIdLogin/signupNostringA unique partner identifier string assigned to a user or account.

UTM tracking parameters

ParameterScreen(s)Required?Data typeDescription
utm_sourceAll screensNostringSource channel for user transfer to SSO (OAuth) screen.
utm_mediumAll screensNostringContent type that encouraged user to click link.
utm_campaignAll screensNostringMarketing campaign name for user transfer.
utm_termAll screensNostringKeyword that user engaged with for transfer.
utm_gclidAll screensNostringGoogle Click identifier for transferred user.

URL examples

Login screen with parameters

https://brokerCrmUrl.com/auth/login?lang=en&source=Web&theme=light&firstLogin=true&partnerId=somePartnerId

Mobile login screen

https://brokerCrmUrl.com/auth/login?lang=es&source=iOS&theme=dark&firstLogin=false

In-app deposit screen

https://brokerCrmUrl.com/inapp/deposit?token=abc123&account=123456&lang=en&source=Android

KYC screen with UTM tracking

https://brokerCrmUrl.com/inapp/kyc?token=xyz789&lang=fr&utm_source=email&utm_campaign=kyc_reminder