Public client configuration
GET
/v1/public-config
const url = 'https://api.frontmail.dev/v1/public-config';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.frontmail.dev/v1/public-configNo key needed, cacheable. Frontmail’s shared Turnstile site key for native apps and the base URL its WebView must use (@frontmail/react-native reads it when no own siteKey is passed).
Responses
Section titled “ Responses ”Public configuration.
Media typeapplication/json
object
turnstile
required
object
mobileSiteKey
required
Site key of Frontmail’s shared Turnstile widget for native apps (null when not configured).
string | null
mobileBaseUrl
required
Base URL the native Turnstile WebView must load with (a hostname of that widget).
string | null
Example
{ "turnstile": { "mobileBaseUrl": "https://mobile.frontmail.dev" }}