Public asset search procedure with geo-restriction context
The asset search procedure is available on the tRPC base endpoint:Documentation Index
Fetch the complete documentation index at: https://docs.glider.fi/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/trpcassets.searchForTokensTier2assets.searchForCommandPaletteTier2includeAiSearchaiSearchLimitincludeAiSearch is true and platform-api is configured with Cloudflare AI
Search credentials, the response includes an additive aiSearchResults array.
These results are normalized command targets from Cloudflare AI Search chunks:
kind: asset, stock, portfolio, strategy, action, document, or
unknowntitle, subtitle, descriptionhref: internal Glider path when the result is directly navigableassetId, chainId, tokenAddress, symbol when present in indexed metadatasourceInstanceId, sourceKey, and score for debugging/ranking visibilityasset-data-sync worker:
POST /api/command-palette/ai-search/enqueuePOST /api/command-palette/ai-search/syncassets.searchForTokens returns additive restriction metadata alongside the search
results:
manualCountryCode
system.ipDetectionrestrictedAssetsMap: geoblocking result by assetIdrestrictionContext.countryCode: normalized country code used for restriction
evaluationrestrictionContext.regionCode: normalized region code used for restriction
evaluationrestrictionContext.manualCountryCode: normalized manual country code used for
additive restriction checksrestrictionContext.cloudflare: normalized Cloudflare geo metadata used to derive
the country and region contextrestrictionContext.ipDebug: raw IP-related request headers plus the derived
client IP, country code, and region code used by the backendrestrictionContext.ipDebug
is returned specifically for support and debugging so callers can compare the raw
forwarded headers against the derived values the backend used. If manualCountryCode
is provided, the backend evaluates both countries and keeps the stricter restriction
result.
restrictionContext.cloudflare includes:
citycontinentcountryCodelatitudelongitudemetroCodepostalCoderegionregionCodetimezonerestrictionContext.ipDebug includes:
rawHeaders.cf-connecting-iprawHeaders.x-forwarded-forrawHeaders.x-real-iprawHeaders.cf-ipcountryrawHeaders.cf-region-coderawHeaders.cf-ipcityrawHeaders.cf-ipcontinentrawHeaders.cf-iplatituderawHeaders.cf-iplongituderawHeaders.cf-regionrawHeaders.cf-metro-coderawHeaders.cf-postal-coderawHeaders.cf-timezonederivedClientIpderivedCountryCodederivedRegionCode